* XmlNodeReaderImpl.cs : in GetNamespacesInScope(), avoid NREs under
"no current node" situation. Also, look for attributes on iterated
nodes, not current ones.
svn path=/trunk/mcs/; revision=160145
* XmlInputStream.cs : it had been failing to retrieve correct
encoding due to insufficient buffer reading. Fixed bug #615499.
svn path=/trunk/mcs/; revision=159967
* 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
* XmlDocument.cs : do not create XmlSchemaInfo instance every time
it validates a node.
* XmlSchemaValidator.cs : limit validity initialization. In some
cases it failed to set Invalid.
svn path=/trunk/mcs/; revision=158867
* XmlInputStream.cs : minimize initial buffer size so that it does
not mostly block some readers. Fixed bug #591291.
svn path=/trunk/mcs/; revision=156280
* 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
* XmlTextReader.cs, DTDReader.cs : 0xFFFF was treated as if it were
0x10000. (It is invalid and should be rejected by decent
XmlReaders usage though.) Fixed bug #594628.
svn path=/trunk/mcs/; revision=155853
* 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
* XmlTextWriter2.cs : fix cosmetic 2.0 compatibility issue in
WriteStartAttribute() which allows "" for prefixed xmlns and brings
incompatibility with XmlTextWriter class.
svn path=/trunk/mcs/; revision=153709
* 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
* 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
* NamespaceHandling.cs, XmlWriterSettings.cs, XmlTextWriter2.cs:
implement NamespaceHandling support for Moonlight.
* System.Xml.dll.sources : added NamespaceHandling which is kept
internal in 2.0 (to simplify its support in XmlTextWriter).
svn path=/trunk/mcs/; revision=147022
the internal sig, which skips any overrides that might exist on
subclasses, so redirect all calls to the public call to make sure
all overrides are called as well.
Make AddNamespace, HasNamespace and RemoveNamespace private.
svn path=/trunk/mcs/; revision=146174
* 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
* XmlReaderSettings.cs: Set prohibitDtd when changing the value
of DtdProcessing. Will fix a few Moonlight DRT tests
svn path=/trunk/mcs/; revision=134827
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
* XmlReaderSettings.cs: Add MaxCharactersInDocument property for
NET_2_1 profile
* XmlUrlResolver.cs: Cleanup #ifdef NET_2_1 inside this file
since this is not used anymore in Moonlight
svn path=/trunk/mcs/; revision=132855
2009-04-28 Sebastien Pouliot <[email protected]>
* XmlXapResolver.cs: Remove dependency on XmlUrlResolver. Small
fixes wrt new unit tests (inside moon-unit).
In .:
2009-04-28 Sebastien Pouliot <[email protected]>
* net_2_1_raw_System.Xml.dll.sources: Remove XmlUrlResolver.cs
and the associated [SecuritySafeCritical] that it required
svn path=/trunk/mcs/; revision=132852
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
* XmlQualifiedName.cs : added Parse() overload that is used for
xsd validation.
* XmlSchemaValidator.cs, BuiltInDatatype.cs, XmlAtomicValue.cs:
use xsd-supported version of XmlQualifiedName.Parse().
Fixed bug #496205.
svn path=/trunk/mcs/; revision=132347
* 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