* XmlUrlResolver.cs : in net_2_0, use Uri.IsAbsoluteUri to filter
relative URIs out.
* XmlUrlResolverTests.cs : fixed test; file://file.txt is to access
such a server whose (domain) name is "file.txt", which is actually
an absolute URI. Remove "regression" in the nunit test.
svn path=/trunk/mcs/; revision=90794
* XmlSchemaValidator.cs : XmlValueGetter actually needs string value
to validate against a restricted simple type (beyond ParseValue()).
Fixed bug #339934.
* XsdValidatingReaderTests.cs : added test for #339934.
in Test/System.Xml.Schema/standalone_tests:
* Makefile : now we try both default and 2.0 profile tests (i.e.
"make run-test" and "make PROFILE=net_2_0").
For 2.0, use XmlReader.Create().
svn path=/trunk/mcs/; revision=89432
* XmlConvert.cs : ToDateTime(XmlDateTimeSerializationMode) should
allow more strings than existing one. Fixed bug #339004.
* XmlConvertTests.cs : added test for #339004 and more.
svn path=/trunk/mcs/; revision=89305
* XsdValidatingReader.cs : r68046 didn't really fix the issue.
Enabled the actual fix. and fixed bug #336625.
* XsdValidatingReaderTests.cs : added test for #336625.
* 336625.xsd : new test file.
* Makefile : extra distfiles (336625.xsd).
svn path=/trunk/mcs/; revision=88537
* XmlConvert.cs : ToDateTime(string,string) should use ParseExact(),
not Parse(). Use 'K' for roundtrip format.
* XmlCustomFormatter.cs : use RoundtripKind when converting to and
from DateTime.
* XmlConvertTest.cs : added test for DateTime roundtrip.
* XmlSerializerTests.cs : added test for bug #337729.
svn path=/trunk/mcs/; revision=88448
* SubtreeXmlReader.cs : when a subtree reader is closed, the original
reader moves to the end of the subtree. Fixed bug #334752, patch by
Scott Peterson.
* XmlReaderCommonTests.cs : added test for bug #334752.
svn path=/trunk/mcs/; revision=87812
* XmlWriter.cs : it is now documented that WriteNode(XPathNavigator)
ignores attributes and namespace decls, so do that.
* XQueryConvert.cs : removed extra stuff that are not in use.
* XmlWriterTests.cs : added WriteNodeXPathNavigatorAttribute().
svn path=/trunk/mcs/; revision=86546
* XmlWriter.cs : implemented WriteValue(object) based on
MSDN "Writing Typed Data" with some fix.
http://msdn2.microsoft.com/en-us/library/bft97s8e(VS.80).aspx
* XmlTextWriter.cs : state check is extraneous. It caused unexpected
rejection of empty namespace URI.
* XmlWriterTests.cs : added test for WriteValue(object).
* XmlTextWriterTests.cs : added WriteQualifiedName() test with empty
namespace.
svn path=/trunk/mcs/; revision=86483
* XmlTextWriter2.cs : fix extraneous indentation which is put after
omitted xmldecl.
* XmlWriterSettingsTests.cs : added test for extraneous newline on
OmitXmlDeclaration mode.
svn path=/trunk/mcs/; revision=83958
* XmlSchemaComplexType.cs,
XmlSchemaComplexContentRestriction.cs :
in Validate(), every descendant item in complexType must be first
validated before getting GetOptimizedParticle(), or it could result
in wrong content particle. Fixed bug #82010.
* XsdValidatingReaderTests.cs : test for bug #82010.
* 82010.xsd, 82010.xml : new test files.
* Makefile : extra distfiles (82010.xml/.xsd).
svn path=/trunk/mcs/; revision=83272
* XmlSchemaValidator.cs : another extra whitespace rejection.
Fixed another issue reported on bug #82183.
* XsdValidatingReaderTests.cs : another test posted on bug #82183.
svn path=/trunk/mcs/; revision=83264
* XsdValidatingReader.cs : Process empty and element-only contents
differently along with the spec 3.4.4 Element Locally Valid (Complex
Type) 2.3 (and 2.1 respectively). Itchy specification indeed.
This demanded not a few internal changes. Fixed bug #82099.
* XmlSchemaValidator.cs : dependent changes to
XsdParticleValidationState. Changed ValidateWhitespace() to do
the same as we do in XsdValidatingReader.
* XsdValidatingReaderTests.cs : added test for bug #82099.
svn path=/trunk/mcs/; revision=82098
* XmlReader.cs : looks like I introduced extra Settings check at
r69383. Fixed bug #82062.
* XmlReaderSettingsTests.cs : added test for bug #82062.
svn path=/trunk/mcs/; revision=81785
* XmlNode.cs : InnerText is settable on XmlDocumentFragment (silly,
but since XmlDocumentFragment does not override this property
it must be handled here).
* XmlDocumentFragmentTests.cs : added InnerText().
* XmlWriterSettingsTests.cs : replace \r\n with \n to make it pass
on windows.
svn path=/trunk/mcs/; revision=79457
* XmlSchemaValidatingReader.cs : nsResolver field must be initialized.
Fixed bug #81460.
* XsdValidatingReaderTests.cs : added test for bug #81460.
svn path=/trunk/mcs/; revision=76376
* XmlConvert.cs : MinValue and MaxValue are unchanged by the
serialization mode (unlike DateTime.ToString()).
* XmlCustomFormatter.cs : fix GenerateToXmlString() as well.
* XmlConvertTests.cs : added test for MaxValue serialization with
every XmlDateTimeSerializationMode.
svn path=/trunk/mcs/; revision=76275
* XmlSchema.cs XmlSchemaGroup.cs XmlSchemaAny.cs XmlSchemaElement.cs
XmlSchemaNotation.cs XmlSchemaComplexType.cs
XmlSchemaAttributeGroup.cs XmlSchemaSimpleType.cs
XmlSchemaIdentityConstraint.cs XmlSchemaAnyAttribute.cs
XmlSchemaRedefine.cs XmlSchemaAttribute.cs :
avoid incorrect compilation of included schemas, fixed bug #81360.
more fix for wrong targetNamespace propagation within current
processing model. Replaced ParentIsSchema field with a property.
* XsdValidatingReaderTests.cs : added test for bug #81360.
* 81360.xsd, 81360inc1.xsd, 81360inc2.xsd : new test files.
* Makefile : added distfiles.
svn path=/trunk/mcs/; revision=76184
* XmlTextReader.cs : Fixed ReadChars() to consume child elements,
including such cases that it breaks tags in the middle of multiple
ReadChars() calls.
* XmlTextReaderTests.cs : added test for bug #80308.
svn path=/trunk/mcs/; revision=69713
* XmlNode.cs : InnerText was returning comment text when there was
only a Comment node. Fixed bug #80233.
* XmlNodeTests.cs : added test for bug #80233.
svn path=/trunk/mcs/; revision=69392
* XmlReader.cs : Create() with string url was not returning validating
XmlReader.
* XmlReaderSettingsTests.cs : added test to make sure that Create()
returns a validating XmlReader.
svn path=/trunk/mcs/; revision=69383
* DTDValidatingReader2.cs : when an attribute declaration is missing
in the corresponding attlist declaration, it caused NRE.
Fixed bug #80231.
* XmlValidatingReaderTests.cs : added test for bug #80231.
svn path=/trunk/mcs/; revision=69382
* XmlDocument.cs : call overriden CreateAttribute() when loading from
XmlReader.
* XmlDocumentTests.cs : make sure to call overriden CreateAttribute()
when loading from XmlReader.
svn path=/trunk/mcs/; revision=69290
* 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
* XsdValidatingReader.cs : when ValidationType is None, it does not
load external schemas. Fixed bug #79924.
* XmlReaderSettingsTests.cs : added test for bug #79224; it does not
load external schemas when validation mode is none.
svn path=/trunk/mcs/; revision=68046