* System.Xml_test.dll.sources :
Added Test/System.Xml/XmlDefaultReader.cs.
* XmlSchemaValidatingReader.cs : don't reject such XmlReader that
does not implement IXmlNamespaceResolver.
* XmlReaderSettingsTests.cs :
Added CreateValidatorFromNonIXmlNamespaceResolver() which is
uncovered by NVDL validator.
* XmlDefaultReader.cs : new file for above.
svn path=/trunk/mcs/; revision=59399
* 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: 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
* 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
* XmlTextReader.cs : When "Significant" is assigned to
WhitespaceHandling, it should ignore non-significant whitespaces.
* XmlTextReaderTests.cs : added WhitespaceHandling tests.
svn path=/trunk/mcs/; revision=56845
* XmlTextWriter.cs : WriteRaw("") is not simply ignored but process
state check and closes open tag.
* XmlTextWriterTests.cs : added test WriteRaw("") closes open tag.
svn path=/trunk/mcs/; revision=56842
* XmlConvert.cs : ToString(TimeSpan) should return valid duration
for TimeSpan.Zero, rather than "P". Fixed bug #77350
* XmlConvertTests.cs : added test for bug #77350.
svn path=/trunk/mcs/; revision=56026
* XmlTextWriter.cs : Fixed bug #77082.
When the state was Start, after WriteProcessingInstruction() and
WriteWhitespace() change it to Prolog.
After WriteDocType() set state to WriteState.Element.
* XmlTextWriterTests.cs : added some tests for XMLdecl state check.
* XslTransformTests.cs : Output_Indent_Xml_DocType() is working now.
svn path=/trunk/mcs/; revision=55487
* XmlTextWriter.cs : Do not local duplicate of automatically-created
prefixes (i.e. check local autocreated prefixes other than
namespaces from ancestors). Fixed bug #77086 and #77087.
* XmlTextWriterTests.cs : Split AutoCreatePrefixes() and marked as
Ignore rather than NotWorking. Also it is not for bug #77086 and
#77077 (they were fixed). See bug #77088.
svn path=/trunk/mcs/; revision=55418
* XmlTextWriter.cs : Fixed bug #77094. Only XmlTextWriter checks
such invalid "xml" prefix which is being mapped to different
namespace URI than the predefined one.
Removed comment that does not make sense.
* XmlNamespaceManager.cs : IsValidDeclaration() could be private.
Added some comments.
* XmlTextWriterTests.cs : re-enabled bug #77094 related tests.
svn path=/trunk/mcs/; revision=55414
* XmlWriter.cs : In WriteNode(XPathNavigator, bool), Avoid
ReadSubtree() for non-element content since they are not allowed
in ReadSubtree() (but allowed here).
* XPathNavigator.cs : use WriteNode(XPathNavigator, bool)
rather than WriteNode(XmlWriter, bool) in WriteSubtree().
* XmlWriterTests.cs : added tests for WriteNode(XPathNavigator, bool)
as well as XPathNavigator.WriteSubtree(XmlWriter).
svn path=/trunk/mcs/; revision=55143
* XmlValidatingReader.cs : In ReadTypedValue(), treat Whitespace
nodes as target string nodes as well as other text nodes.
* XsdValidatingReader.cs :
Don't use normalized string as input to AssessStringValid(). It
incorrectly invalidates strings against simple types with length-
related facets.
Now that we don't ignore whitespaces, we need to explicitly allow
pure whitespace texts in ElementOnly/Empty model.
* XmlSchemaSimpleTypeRestriction.cs : maxLength and minLength were
likely to be ignored in ValidateNonListValueWithFacets().
* XmlSchemaValidator.cs : Don't use normalized string value as the
input to AssessStringValid().
* XsdValidatingReaderTests.cs : test for ReadTypeValue() that it
does not ignore whitespace nodes, and it does not normalize string
incorrectly.
svn path=/trunk/mcs/; revision=55129
* XmlValidatingReader.cs : ReadTypedValue() was not working with
non-XmlSchemaDatatype types.
* XsdValidatingReaderTests.cs : test for ReadTypeValue() with simple
type restriction.
svn path=/trunk/mcs/; revision=55127
if value is null or zero-length string. Modified WriteNmToken to throw
ArgumentException if name is null or zero-length string. Cosmetic
change to WriteStringInternal.
* XmlElement.cs: In 2.0 profile, do not throw ArgumentNullException
if new value for Prefix is null.
* XmlElementTests.cs: Improved tests for setting prefix to null
or zero-length string. On 2.0 profile, setting prefix to null should
not result in ArgumentNullException.
* XmlTextWriterTests.cs: Enabled WriteNmToken tests and
WriteWhitespace tests for null or zero-length value.
svn path=/trunk/mcs/; revision=55115
* XmlTextWriterTests.cs : removed silly part from
WriteStartElement_XmlPrefix (). We are not reproducing MS bugs.
(kept remaining part of this test; see if it makes sense after
bug #77094 got fixed).
svn path=/trunk/mcs/; revision=55091
* XmlTextWriter.cs : when namespaceURI is String.Empty, Prefix
should be just ignored (it is likely to happen that DOM nodes
with empty namespace URI are specified non-empty prefix by
users, which had better be just ignored). Fixed bug #77095.
* XmlTextWriterTests.cs : enabled
WriteStartElement_Prefix_EmptyNamespace() and
NamespacesPrefixWithEmptyAndNullNamespaceEmpty().
svn path=/trunk/mcs/; revision=54850
* XmlElement.cs : patch for Prefix property by Vorobiev Maksim.
- null should cause ArgumentNullException.
- "" should not raise an error.
- throws ArgumentException when it is readonly.
* XmlElementTests.cs : Patch by Vorobiev Maksim.
- setting null to Prefix should raise ArgumentNullException.
- setting String.Empty to Prefix should be allowed.
svn path=/trunk/mcs/; revision=54849
* XsdValidatingReader.cs : Fixed the bug that only the last
* schema
URL in a schemaLocation was processed. Patch by Vorobiev
Maksim.
* XsdValidatingReaderTests.cs : test for multi URLs in
schemaLocation. Test by Vorobiev Maskim.
* multi-schemaLocation.xml,
x-net-config-storage-factory-provider-schema.xsd,
x-net-config-schema.xsd :
test support files for XsdValidatingReaderTests
.MultipleSchemaInSchemaLocation() by Vorobiev Maskim.
svn path=/trunk/mcs/; revision=54848
renumbered some tests. Added tests for WriteStartElement and
WriteElementString for zero-length and null local names.
Added tests for bugs #77093, #77094 and #77095.
svn path=/trunk/mcs/; revision=54846
* XmlTextWriter.cs : When xml:space or xml:lang attribute was
directly written without an element, it caused ArgumentOutOfRange.
Fixed bug #77084.
* XmlTextWriterTests.cs : XmlSpace_Valid() is working now.
svn path=/trunk/mcs/; revision=54793
* XmlTextWriter.cs : (WriteStartAttribute) set prefix as "xmlns" when
namespaceURI is that of xmlns attributes.
* XmlTextWriterTests.cs : XmlNs_Valid2() is working now.
svn path=/trunk/mcs/; revision=54792
* XsltCompileExceptionTests.cs: Added tests for ctors.
* XsltExceptionTests.cs: Added tests for ctors.
* XslTransformTests.cs: Added tests for validation of <xsl:output>
attributes.
* System.Xml_test.dll.sources: Added XsltCompilerExceptionTests.cs and
XsltExceptionTests.cs.
* IXsltContextFunction.cs: Fixed line endings (all CRLF).
* IXsltContextVariable.cs: Fixed line endings (all CRLF).
* XsltContext.cs: Fixed line endings (all CRLF).
* XsltCompileException.cs: Fixed line endings (all CRLF).
Fixed message to correspond with both MS.NET 1.x and 2.0.
* XslTransform.cs: Fixed line endings (all CRLF).
* XsltArgumentList.cs: Fixed line endings (all CRLF).
* XsltException.cs: Fixed line endings (all CRLF). Fixed message to
correspond with MS.NET 1.x and 2.0.
* XslVariable.cs: Beautify error messages.
* XslElement.cs: Same.
* XslAvt.cs: Same.
* XslAttribute.cs: Same.
* XslApplyTemplates.cs: Same.
* XslTemplateContent.cs: Same.
* XslCallTemplate.cs: Same.
* XslCopy.cs: Same.
* XslChoose.cs: Same.
* ScriptCompilerInfo.cs: Fixed line endings.
* XslStylesheet.cs: Beautify error messages.
* Debug.cs: Fixed line endings.
* XslOutput.cs: Indent is now bool instead of string, use
MoveToAttribute to navigate through attributes instead of using
GetAttribute, as we also need to distinguish attributes with
zero-length value from attributes that are not specified for
correct implementation of DOCTYPE. Implemented validation for
value of "omit-xml-declaration", "standalone" and "indent".
We now throw a XsltCompileException for unknown attribute.
* XmlWriterEmitter.cs: only skip WriteDocType is systemId is null.
* HtmlEmitter.cs: XslOutput.Indent is now bool. Fixed WriteDocType
to match MS.NET.
* XmlDecimalFormat.cs: Beautify error messages.
* XslTemplate.cs: Beautify error messages.
* GenericOutputter.cs: XslOutput.Indent is now bool.
* Compiler.cs: Beautify error messages.
svn path=/trunk/mcs/; revision=54780
* XmlDocumentTests.cs : (CreateNodeNodeTypeName) the previous fix was
wrong; ArgumentException is the expected exception (it anyways won't
work under MS.NET 2.0).
* XmlNodeTests.cs : added labels to assertions. another NotDotNet case.
* XmlAttributeTests.cs : ditto.
svn path=/trunk/mcs/; revision=54351
* XmlDocumentTests.cs, XmlAttributeCollectionTests.cs
XmlElementTests.cs, XmlCharacterDataTests.cs :
Marked NotDotNet for some tests broken under 2.0 (MS bugs).
Marked Ignore for some tests which originally does not make sense.
Changed types in ExpectedException for some tests under 2.0.
svn path=/trunk/mcs/; revision=54345
* XmlReader.cs : fixed several misconception in MoveToNextSibling().
It should check its ReadState to avoid infinite loop.
* XmlReaderCommonTests.cs : enabled MoveToNextSibling() tests.
svn path=/trunk/mcs/; revision=54231
* XmlException.cs : added another .ctor() overload that takes both
IXmlLineInfo and innerException.
* XmlQualifiedName.cs : added Parse() overload that takes XmlReader
(since XmlReader is not IXmlNamespaceResolver anymore).
* XmlReader.cs : made several fixes on 2.0 ReadContentAs(),
ReadElementContentAs() and all of its variants.
* XmlReaderCommonTests.cs : added several tests for 2.0 methods.
svn path=/trunk/mcs/; revision=54230
* XmlInputStream.cs :
Added Encoding property on NonBlockingStreamReader
* XmlTextReader.cs :
set Encoding property when it proceeds to xml declaration.
* XmlTextReaderTests.cs : added test for Encoding property.
svn path=/trunk/mcs/; revision=54166