* XmlReader.cs : new 2.0 MoveToAttribute(int) failed to move to the
final attribute in an element.
* XPathNavigatorReaderTests.cs : added test for MoveToAttribute(int).
svn path=/trunk/mcs/; revision=69026
* XmlNode.cs : GetPrefixOfNamespace() was not correctly searching
ancestors' namespaces.
* XPathEditableDocument.cs : those writers should lookup prefix when
WriteStartElement/WriteStartAttribute are passed null prefix.
Removed nodeStack in XmlDocumentInsertionWriter, since nodes are
always added to current node immediately.
* XmlNodeTests.cs : added another test for GetPrefixOfNamespace().
* XPathNavigatorTests.cs : added test for XPath navigator editor's
LookupPrefix().
svn path=/trunk/mcs/; revision=69021
* XmlTextWriter2.cs : fixed some relationship between
ConformanceLevel, OmitXmlDeclaration and WriteStartDocument().
See new tests more details.
* XmlWriter.cs : it could reuse XmlTextWriter.ctor(TextWriter,
XmlWriterSettings). It also resulted in dropping several internal
members in XmlTextWriter.
* XmlWriterSettingsTests.cs : added tests for relationship between
ConformanceLevel, OmitXmlDeclaration and WriteStartDocument().
svn path=/trunk/mcs/; revision=68180
* XmlReaderSettings.cs : in copy constructor, copy (dispatch)
validation event as well. Add OnValidationError() to be invoked
by other internal stuff to raise the validation event.
* XmlSchemaValidatingReader.cs : dispatch validation events from
XmlReaderSettings. Turned out that outside System.Xml.dll
XmlReaderSettings.ValidationEventHandler is useless.
* XmlReaderSettingsTests.cs : added validation event handler test
case.
svn path=/trunk/mcs/; revision=67814
* XmlReader.cs, XmlTextReader.cs, XmlTextReader2.cs:
pass the XmlResolver through to the GetStream impl.
2006-11-13 Atsushi Enomoto <[email protected]>
* XmlReaderSettingsTests.cs : added custom resolver case for primary
XML stream (custom resolver is indeed used and here it should cause
error).
svn path=/trunk/mcs/; revision=67808
* XmlTextReader2.cs : if DTD does not exist, do not try to resolve
entity from null DTD (caused NRE). Fixed bug #79620.
svn path=/trunk/mcs/; revision=67124
* XmlReader.cs : ReadContentAsString() and its family should allow
attribute node. Fixed bug #79268.
* XmlReaderCommonTests.cs : added test for bug #79268.
svn path=/trunk/mcs/; revision=64843
* XmlTextWriter2.cs : expect atomized names only when it is
appropriate. Fixed bug #79047.
* XmlTextWriterTests.cs : added test for bug #79047
svn path=/trunk/mcs/; revision=64676
* XmlDocument.cs : use XmlValidatingReader to load TextReader/Stream
so that it could fill default and fixed attributes. This ends up
to fix bug #79163 (it fills fixed "xmlns" attribute and thus
the node's namespace URI becomes that of glade-2.0).
* XmlDocumentTests.cs : added test for bug #79163.
svn path=/trunk/mcs/; revision=64413
* XmlEntity.cs, XmlEntityReference.cs, XmlNode.cs :
create entity content only when its children is being accessed.
It results differently when there is no actual reference in the
document - an invalid entity value (when it is used to create
child nodes) is ignored unless a code tries to access the Value
of an XmlEntity. Fixed bug #79091
* DTDReader.cs : the fix above uncovered another bug (ibm66n03.xml).
Check illegal reference name in literal entity value.
svn path=/trunk/mcs/; revision=63900
* XmlTextReader.cs, XmlTextReader2.cs, DTDReader.cs :
(ResolveExternalEntityReplacementText) need to skip text
declaration in external entities. To make it possible internalize
SkipTextDeclaration() in XmlTextReader(2). Fixed bug #79090.
svn path=/trunk/mcs/; revision=63890
* XmlTextReader.cs : When a whitespace node comes after a text
declaration in XML external entity (i.e. .ctor() with
XmlNodeType.Element), it contained extra value character ('<').
* XmlTextReaderTests.cs : added test for whitespace node value which
comes after a text declaration in XML external entity (i.e. .ctor()
with XmlNodeType.Element).
svn path=/trunk/mcs/; revision=63726
* XmlTextWriter2.cs : more indentation fixes. Now I believe it is
almost MS compat, but it won't help poor Mike.
* XmlTextWriterTests.cs : more indentation tests.
svn path=/trunk/mcs/; revision=63574
* XmlTextWriter2.cs : fixed some indentation bugs: comments and PIs
should not cause indentation override like text, cdata and
whitespaces do.
Fixed some error messages on node kind.
* XmlTextWriter.cs, XmlTextWriterOpenElement.cs : removed old code.
(I don't want to remove old great code but it confused mike today.)
* XmlTextWriterTests.cs : added test case for comments, PIs and
indentation.
svn path=/trunk/mcs/; revision=63079
Refactoring compilation to make Compile() portable to
XmlSchemaSet.Compile() and fix multi-schema bugs (not done yet)
* XmlSchema.cs :
Removed "root schema" concept from Compile().
Since nested inclusion does not result in an error, the role of
schemaLocationStack is identical to handledUris, thus removed it.
The handledUris does not have to be a field.
Moved NamedIdentities and IDCollections to XmlSchemaSet.
Renamed a Compile() which is called from XmlSchemaCollection and
XmlSchemaSet as CompileSubset(). Renamed private Compile() as
DoCompile().
public Compile() now internally creates a new XmlSchemaSet and
compiles the set.
* XmlSchemaCollection.cs : now it hooks its schemaSet's validation
event handler and thus XmlSchemaSet does not need to check this
collection's event handler by itself.
XmlSchema.Compile() -> XmlSchema.CompileSubset().
* XmlSchemaSet.cs :
Removed SchemaCollection which became unneccessary.
Added NamedIdentities and IDCollection.
XmlSchema.Compile() -> XmlSchema.CompileSubset().
* XmlSchemaAttributeGroupRef.cs, XmlSchemaXPath.cs
XmlSchemaSimpleTypeList.cs, XmlSchemaComplexContentRestriction.cs,
XmlSchemaGroup.cs, XmlSchemaComplexContentExtension.cs,
XmlSchemaSequence.cs, XmlSchemaSimpleContentRestriction.cs,
XmlSchemaSimpleContentExtension.cs, XmlSchemaAny.cs,
XmlSchemaElement.cs, XmlSchemaNotation.cs, XmlSchemaAll.cs,
XmlSchemaComplexType.cs, XmlSchemaAnnotation.cs,
XmlSchemaAttributeGroup.cs, XmlSchemaSimpleTypeRestriction.cs,
XmlSchemaSimpleContent.cs, XmlSchemaGroupRef.cs,
XmlSchemaChoice.cs, XmlSchemaSimpleType.cs,
XmlSchemaIdentityConstraint.cs, XmlSchemaSimpleTypeUnion.cs,
XmlSchemaAnyAttribute.cs, XmlSchemaComplexContent.cs,
XmlSchemaAttribute.cs, XmlSchemaObject.cs :
removed XmlSchemaObject.IsCompiled(). Check compilation state by
comparing compilation ID directly.
* XmlReader.cs :
For DTD validator, call to SetSchemas() makes no sense.
* XmlValidatingReader.cs : now it internally holds old
XmlSchemaCollection instead of new XmlSchemaSet, to make
XmlSchemaSet.SchemaCollection unneccessary.
Removed SetSchemas() since it is now extraneous because of the
XmlReaderChange above.
svn path=/trunk/mcs/; revision=62988
* XmlReader.cs : In Create(), support validation flags for DTD.
* DTDValidatingReader2.cs : when NET_2_0 and ProcessIdentityConstraints
is false, skip ID validation.
svn path=/trunk/mcs/; revision=62755
* XmlReader.cs : when Create() received string url, it should set
XmlTextReader2.CloseInput always true. Fixed bug #78706.
* XmlReaderCommonTests.cs : added test for bug #78706.
svn path=/trunk/mcs/; revision=62053
* XmlTextWriter2.cs : if an attribute being written has the same
non-empty namespace URI as current default namespace, its prefix
should be written. Fixed bug #78598.
* XmlTextWriterTests.cs : added test for bug #78598.
svn path=/trunk/mcs/; revision=61550
* XmlAttribute.cs : (WriteTo) when the namespace URI is empty,
always use empty string for prefix.
* XmlAttributeTests.cs : added NonEmptyPrefixWithEmptyNS().
svn path=/trunk/mcs/; revision=60438
* XmlTextWriter.cs : fix for bug #78148. set_Formatting() is not
rejected after writing some content. I totally disagree on that
it should be allowed, but here is the fix.
* XmlTextWriterTests.cs : test for bug #78148.
svn path=/trunk/mcs/; revision=59722
* XmlReader.cs : ReadElementContentAsObject() incorrectly rejected
the argument type System.Object.
* XmlReaderCommonTests.cs : added test for ReadElementContentAs()
with argument typeof(object).
svn path=/trunk/mcs/; revision=59479
* XPathNavigatorCommonTests.cs : added test for bug #78067.
* XPathNavigatorReaderTests.cs : ditto, for ReadSubtree() part.
* XPathNavigatorReader.cs : Read() did not compute Depth correctly.
It caused bug #78067.
* XPathNavigator.cs : get_OuterXml() returns indented output, without
XML declaration.
* XmlWriter.cs : WriteNode(XPathNavigator) : directly write element
and root nodes instead of dispatching to ReadSubtree().
svn path=/trunk/mcs/; revision=59286
* XmlReader.cs : ReadElementContentAsXXX() did not consume empty
element correctly.
* XmlReaderCommonTests.cs : added test for
ReadElementContentAsString() and empty element.
svn path=/trunk/mcs/; revision=59111
* XmlReader.cs : in XmlReader.Create() ValidationType Auto and XDR
are simply ignored (it was found on running NvdlValidatingReader
under MS.NET 2.0).
svn path=/trunk/mcs/; revision=58354
* XmlReader.cs: ReadContentAsXXX() just stops at start element,
without rejecting it as an error.
ReadElementContentAsXXX() rejects child element nodes.
* XmlReaderCommonTests.cs : Added tests for ReadContentAsString() and
ReadElementContentAsString().
svn path=/trunk/mcs/; revision=57691
* XmlElement.cs : (WriteTo) use IsEmpty to determine which to use:
WriteEndElement() and WriteFullEndElement(). Fixed sys.security
regression.
svn path=/trunk/mcs/; revision=57395
* XmlTextWriter2.cs :
WriteRaw() has stupid second arg. Fixed bug #77623.
WriteString() should raise an error when it is called immediately
after WriteStartDocument().
* XmlTextWriterTests.cs : added test for bug #77623. Also fixed
WriteString() test which failed to fail (Assert.Fail).
svn path=/trunk/mcs/; revision=57229
* XmlChar.cs : (IndexOfInvalidChar) fixed surrogate pairs handling.
They were always regarded as invalid.
* XmlTextWriter2.cs : seems like MS XmlTextWriter outputs invalid
characters as character references. It totally does not make sense
but corcompare depended on that behavior.
This "compatibility" fix causes 10% or more performance loss!!!
* XmlTextWriterTests.cs : added invalid character processing test.
svn path=/trunk/mcs/; revision=57145
* XmlNamespaceManager.cs : added internal LookupPrefixExclusive()
which discards "overriden" namespaces.
* XmlTextWriter2.cs : fresh implementation.
- The source structure is simplified and cleaner.
- When outputting escaped string, output directly to TextWriter.
- roughly 20% performance improvement.
(Also fixed previous perf. evaluation excess in ChangeLog.)
* XmlReaderCommonTests.cs : added custom assertion overload that takes
test label.
* XmlNodeReaderTests.cs : labeled some.
* XmlTextWriterTests.cs :
Changed the semantics of AttributeNamespacesXmlnsXmlns() and
removed NotDotNet (in contrast this test should fail with previous
version of XmlTextWriter). See the code comment for details.
Added WriteQualifiedNameXmlnsError().
* System.Xml.dll.sources : removed XmlTextWriterOpenElement.cs and
XmlTextWriter.cs. Added XmlTextWriter2.cs, to be renamed to
XmlTextWriter.cs in a few days or weeks.
svn path=/trunk/mcs/; revision=57095