* 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
* 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
* 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
* XmlEntity.cs, XmlEntityReference.cs, XmlNode.cs :
create entity content only when its children is being accessed.
It results differently when there is no actual reference in the
document - an invalid entity value (when it is used to create
child nodes) is ignored unless a code tries to access the Value
of an XmlEntity. Fixed bug #79091
* DTDReader.cs : the fix above uncovered another bug (ibm66n03.xml).
Check illegal reference name in literal entity value.
svn path=/trunk/mcs/; revision=63900
* IHasXmlChildNode.cs :
New internal interface to hold LastLinkedChild.
* XmlNodeListChildren.cs XmlEntity.cs XmlElement.cs XmlAttribute.cs
XmlLinkedNode.cs XmlEntityReference.cs XmlNode.cs
XmlDocumentFragment.cs XmlDocument.cs : use it. It minimizes memory
consumption in XmlText, XmlWhitespace, XmlComment etc.
* System.Xml.dll.sources : added IHasXmlChildNode.cs.
svn path=/trunk/mcs/; revision=56945
* XmlDocument.cs, XmlAttribute.cs, XmlElement.cs : Avoid unnecessary
name checks in CreateElement() and CreateAttribute().
get_DocumentType() could be stopped when the iterated child node
is the document element.
* XmlNode.cs : removed commented lines.
* XmlNameEntry.cs : hash code for a name entry is mostly identical by
its local name, so avoid extraneous GetHashCode() especially on
namespaces.
svn path=/trunk/mcs/; revision=56270
* XmlNode.cs, XmlIteratorNodeList.cs :
Now we can enable XmlIteratorNodeList again (mcs, incorrectly
removing nodes in the node list, was fixed).
svn path=/trunk/mcs/; revision=56200
* XmlNode.cs : disabled XmlIteratorNodeList optimization. It caused
some kind of regression under mcs/tests/xml-025.cs.
svn path=/trunk/mcs/; revision=56153
* XmlNode.cs,
XmlDocument.cs,
XmlAttribute.cs,
XmlElement.cs :
Added internal AppendChild() override that omites node type
checking, and used it in many places.
svn path=/trunk/mcs/; revision=56151
* System.Xml.dll.sources : added XmlIteratorNodeList.cs.
* XmlIteratorNodeList.cs : new file for XmlNodeList implementation.
It does not iterate all nodes in advance.
* XmlNode.cs : use XmlIteratorNodeList in SelectNodes().
svn path=/trunk/mcs/; revision=56148
* XmlNode.cs : under 2.0 xml/xmlns are treated as special cases in
GetNamespaceOfPrefix()/GetPrefixOfNamespace() (but it still does not
implement IXmlNamespaceResolver, bummer).
svn path=/trunk/mcs/; revision=54352
* XmlReader.cs, XmlNode.cs :
[DebuggerDisplay] are not worthy of existing.
* XPathNavigator.cs, XPathNodeIterator.cs :
[DebuggerDisplay] are not worthy of existing.
svn path=/trunk/mcs/; revision=52880
* XmlElement.cs, XmlCDataSection.cs, XmlText.cs, XmlWhitespace.cs,
XmlSignificantWhitespace.cs : added ParentNode overrides (actually
they don't make sense since it just calls base.)
* XmlNode.cs, XmlDocument.cs : changed .NET 2.0 CreateNavigator() impl
to match signature and skip OwnerDocument check in XmlNode (since
it is overriden). Maybe MS does not have ownerDocument as a field and
costs too much on OwnerDocument property.
Added missing bits in XmlDocument.
svn path=/trunk/mcs/; revision=52647
* XmlAttribute.cs : added new overrides in 2.0 RTM (this scarcely
makes sense without real optimization though).
* XmlDocument.cs, XmlElement.cs, XmlNode.cs : avoid ChildNodes and
save extra XmlNodeList creation cost.
svn path=/trunk/mcs/; revision=52646
* XmlEntityReference.cs, XmlNode.cs : For entity references, BaseURI
resolution should be different from that of parent since they might
differ. Patch by Andrew Skiba.
svn path=/trunk/mcs/; revision=45323
* 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
* 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
* 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
* XmlDocument.cs : use XPathEditableDocument again.
* XmlNode.cs : To be compatible with XPathEditableDocument, it should
not cast XPathNavigator to XmlDocumentNavigator but to IHasXmlNode.
svn path=/trunk/mcs/; revision=35389
* XmlAttribute.cs : some property getters threw NullReferenceException
when the attribute is not added to an element.
* XmlNode.cs : When a node is not appended to another node, BaseURI
is empty. Bug #64120 is fixed.
svn path=/trunk/mcs/; revision=32914
* XmlNode.cs : When the argument node being inserted is the existing
document element, it should not result in an error (since it should
be first removed from document, thus no error should happen).
svn path=/trunk/mcs/; revision=31299
W3C DOM compliant read-only check support (buggy part in MS.NET).
* XmlAttribute.cs,
XmlCDataSection.cs,
XmlCharacterData.cs,
XmlDocument.cs,
XmlElement.cs,
XmlNode.cs,
XmlSignificantWhitespace.cs,
XmlText.cs
: CloneNode() - set read-only when copied node is read-only.
Check IsReadOnly on attempt to modify value.
* XmlEntity.cs,
XmlEntityReference.cs : Set descendant nodes read-only.
* XmlAttributeCollection.cs,
XmlNode.cs
: Fixed incompatible exception type.
* XmlEntityReference.cs : CloneNode() should not pass an empty string
as its name.
* XmlEntityReference.cs,
XmlProcessingInstruction.cs : Check XML name validity.
* XmlText.cs : CloneNode() does not have to check children.
svn path=/trunk/mcs/; revision=25938
* XmlAttributeCollection.cs : Remove() should throw an exception when
target attribute is not included in the collection.
* XmlDocument.cs : ImportNode() should reject null node.
* XmlNode.cs : Fixed type of exception for invalid insertion.
It should throw an exception not only when the owner document of the
reference element is different but its parent element is different.
Some error message improvement.
svn path=/trunk/mcs/; revision=24509
* XmlNode.cs : ChildNodes should not create XmlNodeListChildren
every time. This fix heavily improved performance.
svn path=/trunk/mcs/; revision=22937