* XmlTextWriter.cs : namespace declaration check for those which starts
with 'x' 'm' 'l' should not be done here (it might be 'declared'
though reserved).
* XmlNamespaceManager.cs : error message for "'xml' prefix for
different namespace" is incorrect.
svn path=/trunk/mcs/; revision=41546
* XmlDocument.cs : ugh, so I introduced extraneous reader.Read() in
ReadNode() for EntityReference and it resulted in unexpected skip.
* DTDValidatingReader.cs : On EndEntity, LocalName and Name should
return the name of entity. Removed unused entityReaderNameStack.
svn path=/trunk/mcs/; revision=41533
* DTDValidatingReader.cs : reverted one change in r40985. Entity stack
is nothing to do with ReadAttributeValue().
svn path=/trunk/mcs/; revision=41511
* DTDValidatingReader.cs : When there was actual attribute in source
XmlReader, MoveToAttribute(i) did not move source reader as expected.
svn path=/trunk/mcs/; revision=41510
* XmlDocument.cs : In ReadNode(), on EntityReference node, when
XmlReader can resolve entity, it expands entity and apppend
children into the entity reference. Patch by Konstantin Triger.
svn path=/trunk/mcs/; revision=41425
* XmlTextWriter.cs : For duplicating namespace mapping, it should
create another prefix without throwing an exception.
* XmlTextWriterTests.cs : added testcase for duplicating namespace
mapping processing (should create another prefix, not exception).
svn path=/trunk/mcs/; revision=41387
* XmlTextWriter.cs : LookupPrefix() should not return those prefix
that is overriden by another xmlns declaration.
* XmlTextWriterTests.cs : Added test for LookupPrefix() for
overriden prefix.
svn path=/trunk/mcs/; revision=41372
* XslFunctions.cs : unparsed-entity-uri() should return SYSTEM ID
instead of BaseURI.
* XmlEntity.cs : it was not returning SYSTEM ID when there is no
PUBLIC ID.
* XmlDocumentNavigator.cs : On Whitespace followed by DocumentType,
get_NodeType() resulted in loop.
svn path=/trunk/mcs/; revision=41239
* XmlComment.cs, XmlNode.cs, XmlText.cs, XmlProcessingInstruction.cs,
XmlEntityReference.cs, XmlSignificantWhitespace.cs, XmlAttribute.cs,
XmlElement.cs, XmlEntity.cs, XmlCDataSection.cs :
For those nodes that are created by Clone(), IsReadOnly is false.
Patch by Konstantin Triger.
* XmlNodeTests.cs : added Clone() of readonly node returns a node
that is not readonly.
svn path=/trunk/mcs/; revision=41185
* XmlDocumentNavigator.cs : iteratedNames array could be fixed and
performance got improved. Patch by Knstantin Triger.
svn path=/trunk/mcs/; revision=41182
* XmlAttribute.cs : MS does not reject non-NCName prefix. Patch by
Konstantin Triger.
* XmlAttributeTests.cs : added nonNCName Prefix case.
svn path=/trunk/mcs/; revision=41181
* XmlTextWriter.cs : WriteString() should be valid when
WriteStartDocument() was not called.
* XmlTextWriterTests.cs : Test for call to WriteRaw() -> WriteString()
svn path=/trunk/mcs/; revision=41159
* XmlNamespaceManager.cs : IsValidDeclaration was giving useless error
information.
* GenericOutputter.cs : It should not attempt to write prefix "xml" and
namespace "http://www.w3.org/XML/1998/namespace".
svn path=/trunk/mcs/; revision=41094
* XmlDocumentNavigator.cs : it should virtually expand EntityReference,
so refactored to handle both entity references and top level children.
svn path=/trunk/mcs/; revision=41082
* XmlTextReader.cs : XmlParserContext was not properly popped on
the expected timing and thus had lost BaseURI, XmlSpace and XmlLang.
svn path=/trunk/mcs/; revision=41021
* DTDValidatingReader.cs : It should not skip whitespace and
significant whitespace nodes unless it is expanding entities.
* XmlDocumentNavigator.cs : Fixed NodeType that was returning
incorrect type when there is a sequence of text/cdata/space nodes.
svn path=/trunk/mcs/; revision=40985
* XmlNamespaceManager.cs : Prefix "xml" is bound to the fixed
namespace "http://www.w3.org/XML/1998/namespace", but it is not
vice versa (i.e. we can use other prefixes for this namespace URI).
svn path=/trunk/mcs/; revision=40842
* XmlNode.cs : It does not have to iterate children to find argument
node. Fixed exception type to ArgumentException. Patch by Andrew
Skiba.
svn path=/trunk/mcs/; revision=40793
* XmlAttribute.cs : just use InnerText for Value. Patch by Andrew
Skiba.
* XmlConvert.cs : Handle null and empty strings for EncodeName(),
EncodeLocalName() and EncodeNmToken(). Patch by Andrew Skiba.
* NameTable.cs : usually tail of namespaces are rather different than
head of them. Patch by Andrew Skiba.
* XmlUrlResolver.cs : missing %20 handling. Patch by Andrew Skiba.
svn path=/trunk/mcs/; revision=40757
* XmlAttribute.cs : For default attributes, WriteTo() writes nothing
under MS.NET.
* DTDValidatingReader.cs : reduced indentation using Linus trick
(it was too deep in nest).
svn path=/trunk/mcs/; revision=40691
* DTDValidatingReader.cs : element name stack might be empty when the
input XmlReader contains fragments. Patch by Andrew Skiba.
svn path=/trunk/mcs/; revision=40637
* XmlNode.cs (XmlNode.SchemaInfo): Mark this as not CLS-compliant
to avoid a CS3025.
* XmlReaderSettings.cs (XmlReaderSettings.XmlResolver): Mark this
as not CLS-compliant to avoid a CS3025.
svn path=/trunk/mcs/; revision=39449
* XmlNode.cs,
XmlAttribute.cs,
XmlAttributeCollection.cs :
Now reuse parentNode field for XmlAttribute.OwnerElement and
reduce class allocation size.
* XmlNameEntry.cs :
New class that represents a name triplet.
XmlNameEntryCache.cs :
New type to cache name entries.
* XmlAttribute.cs,
XmlElement.cs :
Replace name strings with name entry and save class allocation size.
XmlDocument.cs :
Add name entry cache field to document and reuse name entries that
are already allocated.
svn path=/trunk/mcs/; revision=39086
* XmlNode.cs, XmlAttribute.cs : reverted the previous patch. It broke
several nunit tests.
..Missed the commits except for ChangeLog :(
svn path=/trunk/mcs/; revision=39021
* XmlNode.cs (InnerText, AppendChildValues): Don't allocate a
string in the case where nothing needs to be appended.
* XmlAttribute.cs (BuildChildValue): Start out the string with
`null' not `String.Empty'. String.Concat (null, blah) == blah,
pointerwise. ie, there is no allocation. This makes it so that
getting the value of an attribute is faster for the fast case.
svn path=/trunk/mcs/; revision=38983
* XmlReader.cs : ReadElementContentAsBinHex() was calling ..AsBase64().
* XmlValidatingReader.cs : In set_EntityHandling(), set that property
of DTDValidatingReader.
* XmlNodeReader2.cs,
XmlNodeReaderImpl.cs : added simplified implementation that splits
entity handling and anything else.
* XQueryConvert.cs : implemented ShouldCheckValueFacets().
Use Convert class instead of simple casts (check range).
* XmlReaderSettings.cs : added SetSchemas() for XPathNavigator.
svn path=/trunk/mcs/; revision=38088
* XmlSchema.cs : XmlResolver.ResolveUri() may return null.
* XmlParserContext.cs : all the string properties must not be set as
null. Thanks to Joshua.
* XmlTextReader.cs,
DTDObjectModel.cs,
DTDReader.cs : XmlResolver.ResolveUri() may return null.
* XsdValidatingReader.cs : XmlResolver.ResolveUri() may return null.
* XslFunction.cs,
Compiler.cs : XmlResolver.ResolveUri() may return null.
svn path=/trunk/mcs/; revision=38084
* System.Xml.dll.sources : added XmlReaderBinarySupport.cs.
* XmlReaderBinarySupport.cs : added support class for base64/binhex
reading that mostly automates those reader support.
* XmlReader.cs : added CanReadBinaryContent, CanReadValueChunk,
ReadContentAsBase64(), ReadElementContentAsBase64(),
ReadContentAsBinHex(), ReadElementContentAsBinHex() and
ReadValueChunk().
* XmlTextReader.cs : Now ReadBase64() and ReadBinHex() implementations
are moved to XmlReaderBinarySupport. Added CanReadBinaryContent and
CanReadValueChunk overrides. Call Binary.Reset() to enable them.
* XmlTextReader2.cs : added CanReadBinaryContent, CanReadValueChunk.
Added ReadContentAsBase64(), ReadElementContentAsBase64(),
ReadContentAsBinHex(), ReadElementContentAsBinHex() (just because
they are overriden in MS.NET).
* XmlNodeReader.cs : added CanReadBinaryContent and CanReadValueChunk.
Call Binary.Reset() to enable them.
* XPathNavigatorReader.cs : added CanReadBinaryContent and
CanReadValueChunk. Call Binary.Reset() to enable them.
* SubtreeXmlReader.cs, XmlFilterReader.cs :
added CanReadBinaryContent and CanReadValueChunk.
Call Binary.Reset() to enable them.
svn path=/trunk/mcs/; revision=37892
* xsdtest.cs : added --v2 option that uses XmlReader.Create()
instead of XmlValidatingReader.
* XmlFilterReader.cs : don't expect XmlReaderSettings of its source.
* XmlSchemaValidatingReader.cs : xsi:* attributes are now handled via
XmlSchemaValidator.ValidateElement().
Removed some obsolete overrides.
* XmlReader.cs :
Create() should assure NameTable!=null on creating XmlTextReader.
Now use XmlSchemaValidatingReader for all xsd validation.
* XmlTextReader2.cs :
Don't use input reader's Settings. It is null.
* XmlReaderSettings.cs : added XmlResolver.
* XmlSchemaSet.cs : set default resolver. Clear components before
recompilation.
* XmlSchemaValidator.cs :
SourceUri is System.Uri.
GetUnspecifiedDefaultAttributes() is allowed only when it is inside
start tag.
Added AddSchema().
Added duplicate attribute check.
Added ValidateElement() that takes xsi:* parameters.
(http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackId=7fc38ea1-c306-4fb7-8631-0e174b0ff3c6)
HandleXsiNil() now just takes string parameter.
svn path=/trunk/mcs/; revision=37782
* System.Xml.dll.sources : added XmlSchemaValidatingReader.
* XmlSchemaValidatingReader.cs : new file; another XmlReader
implementation that handles XSD validation. It is an reference
application for XmlSchemaValidator.
* XsdValidatingReader.cs : Use readerLineInfo for IXmlLineInfo.
* XmlReaderSettings.cs : XsdValidate and DtdValidate are now
ValidationType.
* XmlReader.cs : In Create(), use XmlSchemaValidatingReader for xsd
validation.
* XmlSchemaValidator.cs : implemented basic validation feature.
svn path=/trunk/mcs/; revision=37739
* XsdValidatingReader.cs : making smarter relationship between
XmlValidatingReader. Added ValidationEventHandler and ValidationType.
nonDefaultAttributeCount was extraneous.
Added 'checkIdentity' (i.e. !IgnoreIdentityConstraints).
DefaultAttributesCache property did make little sense, so just
reverted to ArrayList field.
* XmlValidatingReader.cs : making smarter relationship between
XsdValidatingReader.
svn path=/trunk/mcs/; revision=37429
* XmlWriter.cs : WriteQualifiedNameInternal() should consider the case
ns is null, and don't lookup prefix for empty namespace.
svn path=/trunk/mcs/; revision=37185
* XmlQualifiedName.cs : in 2.0 it is [Serializable].
* XmlTextReader.cs : removed unused local variable.
* XmlTextWriter.cs : Improved some exception messages.
moved some private fields into #if NET_2_0.
* XmlValidatingReader.cs : rename specifiedResolver to
resolverSpecified and use it in internal get_Resolver().
Added [Obsolete] for ReadTypedValue() whose base is obsoleted.
svn path=/trunk/mcs/; revision=36465
* XmlTextReader.cs : Now attribute normalization is handled on Read(),
not on get_Value. This caused a problem when we use
XmlValidatingReader that value is not always normalized expectedly.
svn path=/trunk/mcs/; revision=36361