* 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
* 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
* XmlParserContext.cs : .net does not populate XmlNamespaceManager
automatically.
* XmlDocument.cs : so, always create one here.
* XmlParserContextTests.cs : they are working. case #3 should not
try to parse broken internalSubset (we do not allow broken
intsubset and it is almost no worthy of assuring only-nominal
.net compat that such broken internalSubset should be allowed).
svn path=/trunk/mcs/; revision=96116
* 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
* XmlDocument.cs : use XmlValidatingReader to load TextReader/Stream
so that it could fill default and fixed attributes. This ends up
to fix bug #79163 (it fills fixed "xmlns" attribute and thus
the node's namespace URI becomes that of glade-2.0).
* XmlDocumentTests.cs : added test for bug #79163.
svn path=/trunk/mcs/; revision=64413
* 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 XmlTextReader.cs : in ReadNode(), we can avoid
extraneous whitespace node creation for XmlTextReader by setting
WhitespaceHandling.Significant when PreserveWhitespace is false.
svn path=/trunk/mcs/; revision=56918
* 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
* XmlDocument.cs : in ReadNode() to consume element node, switched
to MoveToAttribute(int) since MoveToNextAttribute() was somehow
not working fine. It is needed to avoid Sys.Data test breakage
and anything else should be fixed indeed.
svn path=/trunk/mcs/; revision=56199
* 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
* XmlDocument.cs : optimized ReadAttributeNode() to not call
MoveToAttribute() unneccesarily (call it only when ReadNode() is
called on an attribute node).
svn path=/trunk/mcs/; revision=56150
* XmlNameEntryCache.cs XmlNameEntry.cs XmlDocument.cs :
Add Hash field to find name entry quickly.
In XmlNameEntryCache make use of name table (it is totally
unused there though).
svn path=/trunk/mcs/; revision=55970
* 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
* XmlAttribute.cs, XmlDocument.cs : check id table updates when
XmlAttribute.set_Value() was invoked. Fixed bug #76311.
* XmlAttributeTests.cs : test for bug #76311.
svn path=/trunk/mcs/; revision=51080
* XmlDocument.cs: Added an InheritanceDemand for Unrestricted on
CreateDocumentType and ReadNode methods.
* XmlException.cs: Added a Demand for SerializationFormatter on
GetObjectData method.
* XmlResolver.cs: Added an InheritanceDemand for Unrestricted on
ResolveUri method.
* XmlSecureResolver.cs: Fixed exception when creating evidences with
an empty URL in CreateEvidenceForUrl method. Only call ResolvePolicy
and PermitOnly if the security manager is enabled.
* XmlTextReader.cs: Added an InheritanceDemand for Unrestricted on the
class.
* XmlTextReader2.cs: Added an InheritanceDemand for Unrestricted on
the class.
* XmlValidatingReader.cs: Added an InheritanceDemand for Unrestricted
on the class.
svn path=/trunk/mcs/; revision=49179
* 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
* 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
* 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
* XmlAttribute.cs, XmlElement.cs : get_Name should consider name table.
* XmlDocument.cs : use NameTable in Load() and LoadXml().
* XmlReader.cs : In Create(), use NameTable in XmlReaderSettings.
svn path=/trunk/mcs/; revision=35808
* 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
* DTDObjectModel.cs,
XmlDocument.cs : Close stream always.
* XmlNodeReader.cs : don't expect atomized name in LookupNamespace().
* XmlTextReader.cs : Namespace has was not done. Some tests depends on
this failure and to be fixed.
svn path=/trunk/mcs/; revision=28900
* XmlDocument.cs : Save() should indent only when PreserveWhitespace
is false. Fixed bug #59155.
Modified comment lines a bit.
svn path=/trunk/mcs/; revision=28234
* DTDObjectModel.cs,
DTDReader.cs,
XmlDocument.cs,
XmlInputStream.cs,
XmlParserInput.cs,
XmlTextReader.cs,
XmlUrlResolver.cs : removed reference to Mono.Xml.
Made Mono.Xml.* classes internal.
* XmlDocument.cs : output xml declaration for TextWriter output in Save()
* XmlElement.cs : Name character check should be done in .ctor().
* XmlNamespaceManager.cs : Removed dangerous internal .ctor()
svn path=/trunk/mcs/; revision=27149
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