* XmlDefaultWriter.cs : add state management support.
* XmlWriter.cs : use above feature for "null Settings in source
writer" case. This brings some minor .NET compatibility and
should fix bug #607697.
* XmlWriterTests.cs : remove NotWorking everywhere.
svn path=/trunk/mcs/; revision=159714
* XmlDefaultWriter.cs : new source (which I once wrote for relaxng
and corcompare).
* XmlWriter.cs : in some cases XmlWriter.Create() returns a new
wrapping writer instance.
If there was no Settings specified, return null.
* System.Xml.dll.sources,
moonlight_raw_System.Xml.dll.sources,
monotouch_System.Xml.dll.sources : add DefaultXmlWriter.cs.
* XmlWriterTests.cs : add a bit more assertions.
Remove NotWorking from some tests.
svn path=/trunk/mcs/; revision=159712
* XmlWriterTests.cs : add test matrix for understanding things.
Make those test names consistent. Mark as NotWorking.
svn path=/trunk/mcs/; revision=159704
* XmlDocument.cs : it seems .net does allow Load() with such an xml
reader positioned in the middle of the document. Fixed bug #598953.
* XmlDocumentTests.cs : add test for bug #598953.
svn path=/trunk/mcs/; revision=156278
* XmlReader.cs, XmlQualifiedName.cs : ReadElementContentAs() when
used for qname, treats non-prefixed name as in default namespace.
* XmlReaderCommonTests.cs : added test for ReadElementContentAs() for
qname, with default namespace.
svn path=/trunk/mcs/; revision=154272
* XmlReaderBinarySupport.cs : eliminate possible extra buffer
storing of zeros. Fixed bug #543332.
* XmlReaderCommonTests.cs : added test for bug #543332.
svn path=/trunk/mcs/; revision=150347
* XmlConvert.cs : Do not ignore ticks which are less than a
millisecond. Remove trailing zeros for milliseconds and ticks.
* XmlConvertTests.cs : add test for ToString(TimeSpan) with small
ticks.
svn path=/trunk/mcs/; revision=149618
* XmlConvert.cs : trim spaces when parsing TimeSpan.
* XmlConvertTests.cs : add test for ToTimeSpan() with spaces.
svn path=/trunk/mcs/; revision=149617
* XmlConvert.cs : DateTimeOffset parse is sloppy.
* XmlConvertTests.cs : add test for ToDateTimeOffset() with date
string with spaces.
svn path=/trunk/mcs/; revision=149609
* XmlConvertTests.cs : added commented-out tests for the remaining
parse tests by Tiaan Geldenhuys for XLinq, with the reason why.
svn path=/trunk/mcs/; revision=149388
* XmlConvert.cs : ToSingle(string) should do the same as ToDouble().
* XmlConvertTests.cs : float parse should do the same. Fix NaN test.
svn path=/trunk/mcs/; revision=149386
* XmlConvert.cs : ToDouble(string) should handle NaN, INF and -INF
with whitespace allowed.
* XmlConvertTests.cs : another double parse test for string with
spaces, for string constants such as NaN.
svn path=/trunk/mcs/; revision=149385
* XmlConvert.cs : ToDouble(string) and ToIntXX(string) allows
whitespaces.
* XUtil.cs : to create an XNode from an object, do not use ToString()
directly. Handle TimeSpan in xsd manner.
svn path=/trunk/mcs/; revision=149382
* XmlWriter.cs : handle a corner case for empty string handling
difference between XmlTextWriter and XmlWriter.Create().
* XmlWriterTests.cs : added a corner case test for empty string handling
difference between XmlTextWriter and XmlWriter.Create().
svn path=/trunk/mcs/; revision=149368
* XmlNodeReaderImpl.cs : when the reader is at attribute value,
MoveToNextAttribute() incorrectly moved to the first attribute.
Fixed bug #550379.
* XmlNodeReaderTests.cs : added test for bug #550379.
svn path=/trunk/mcs/; revision=145910
* XmlAttributeCollection.cs : removed duplicate ID attribute check
here as this behavior not specifically defined by W3C DOM Level 2
specification. Fixed bug #508296.
* XmlAttributeCollectionTests.cs : add test for bug #508296 by
Tom Hindle.
svn path=/trunk/mcs/; revision=141952
* XmlTextReader.cs : there still was use of bogus
XmlParserContext.NameTable.
* XmlTextReaderTests.cs : added test for null nametable in parser
context.
svn path=/trunk/mcs/; revision=140397
* XmlNamespaceManager.cs : Adding prefix "xml" seems to be allowed
as long as the URI is correct. Fixed bug #514015.
* XmlNamespaceManagerTests.cs : add test for bug #514015.
svn path=/trunk/mcs/; revision=138396
* XmlSchemaGroupRef.cs : when getting optimized particle, reset was
incomplete. Patch by Jonas Larsson. Fixed bug #502168.
2009-05-07 Jonas Larsson <[email protected]>
* XmlSchemaValidatorTests.cs : added test for bug #501666.
svn path=/trunk/mcs/; revision=134396
* XmlSchemaComplexType.cs : make complex content type work like .NET
does. Patch by Jonas Larsson. Fixed bug #501814.
* XmlValidatingReaderTests.cs : test for bug #501814 by Jonas
Larsson.
svn path=/trunk/mcs/; revision=133908
* XmlSchemaComplexType.cs : do not forget to clear attributes
before Compile(). Patch by Jonas Larsson. Fixed bug #501763.
* XsdValidatingReaderTest.cs : test for bug #501763 by Jonas Larsson.
svn path=/trunk/mcs/; revision=133905
2009-04-28 Sebastien Pouliot <[email protected]>
* XmlReaderCommonTests.cs: Add test case for an empty string url
In System.Xml:
2009-04-28 Sebastien Pouliot <[email protected]>
* XmlTextReader.cs (InitializeContext): Under NET_2_1 do not give
a second change using Path.GetFullPath. (GetStreamFromUrl) Add
extra validations that would be missed in NET_2_1
svn path=/trunk/mcs/; revision=132856
2009-04-28 Sebastien Pouliot <[email protected]>
* XmlResolverTest.cs: New. Unit tests for base features.
In System.Xml:
2009-04-28 Sebastien Pouliot <[email protected]>
* XmlResolver.cs: Small fixes wrt new unit tests. Add SupportsType
method for NET_2_1 profile.
In .:
2009-04-28 Sebastien Pouliot <[email protected]>
* System.Xml_test.dll.sources: Add System.Xml/XmlResolverTest.cs to
the unit tests
svn path=/trunk/mcs/; revision=132851
* XmlAttributeCollection.cs : when the node to be inserted has owner
element _but_ is identical to that of this collection, do not
reject it to raise an error. Fixed bug #496022.
* XmlAttributeCollectionTests.cs : added test for bug #496022.
svn path=/trunk/mcs/; revision=132344
* XmlReaderBinarySupport.cs : ReadContentsAsBase64() could skip
EndElement at the next XmlReader.Read(). Fixed bug #480066.
* XmlReaderCommonTests.cs : added test for bug #480066.
svn path=/trunk/mcs/; revision=129404
* XmlTextWriter2.cs : similar fix in WriteStartElement() to
previous change. Fixed bug #474091.
* XmlTextWriterTests.cs : added test for bug #474091.
svn path=/trunk/mcs/; revision=126417
* XmlElementTest.cs: SetAttribute(name,value) should identify value
change for existing node, from new node insertion.
Fixed bug #464394.
* XmlElementTests.cs : added test for bug #464394.
svn path=/trunk/mcs/; revision=126323
* XmlTextWriter2.cs : in WriteStartAttribute(), fill namespace in
case it is null and the prefix has matching ns. Fixed bug #472634.
* XmlTextWriterTests.cs : added test for bug #472634.
svn path=/trunk/mcs/; revision=126047
* XmlReaderBinarySupport.cs : do not hang in the middle of reading
byte chunk at some node types. Fixed bug #464229.
* XmlReaderCommonTests.cs : added test for bug #464229.
svn path=/trunk/mcs/; revision=123866
* XmlReader.cs : ReadContentAsString() does not reject non-elements.
ReadElementContentAsString() rejects non-content nodes.
* XmlReaderCommonTests.cs : added test for ReadContentAsString()
and ReadElementContentAsString() against certain node types.
svn path=/trunk/mcs/; revision=122737
* XsdValidatingReader.cs : skip text validation under xs:any.
Fixed part of bug #449512.
* XmlSchemaValidator.cs : skip text validation under xs:any.
* XmlValidatingReaderTests.cs : added test for validating mixed
element under xs:any.
svn path=/trunk/mcs/; revision=121093
* SubtreeXmlReader.cs : Close() should correctly skip empty element.
In Read(), make sure to move from Element state.
* XmlReader.cs : detailed error location in ReadSubtree().
* XmlReaderCommonTests.cs : another Subtree+EmptyElement case.
svn path=/trunk/mcs/; revision=113339
* SubtreeXmlReader.cs : make sure to set eof for empty element after
Read().
* XmlReaderCommonTests.cs :
added test for NodeType for empty element.
svn path=/trunk/mcs/; revision=113312
* XmlReader.cs : ReadSubtree() is valid only on an element.
* XmlReaderCommonTests.cs :
added test for ReadSubtree() on non-element.
svn path=/trunk/mcs/; revision=113304
* XmlNamespaceManager.cs : check null arg.
* XmlTextReader.cs : fixed bug #412657; now we populate nametable
and namespace manager in case they are null in parser context, and
use them instead of the members in the parser context.
* XmlTextReaderTests.cs : added test for bug #412657.
svn path=/trunk/mcs/; revision=109049