Commit Graph
18 Commits
Author SHA1 Message Date
Atsushi Eno a59f3687fd 2006-02-17 Atsushi Enomoto <[email protected]>
* XmlLinkedNode.cs : In NextSibling, use LastChild directly.
	  It improves NextSibling performance in bulky document.


svn path=/trunk/mcs/; revision=57005
2006-02-17 18:37:58 +00:00
Atsushi Eno cbc55bdc39 2006-02-16 Atsushi Enomoto <[email protected]>
* 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
2006-02-16 15:46:11 +00:00
Duncan Mak 8fa6e766dd Add MIT license to System.XML.DLL
svn path=/trunk/mcs/; revision=30055
2004-06-21 18:07:31 +00:00
Atsushi Eno fdf21b83be 2004-02-04 Atsushi Enomoto <[email protected]>
* DTDObjectModel.cs : Never expand entity on ScanEntityValue().
	* DTDValidatingReader.cs : XmlDeclaration node requires attributes
	  to be movable.
	* XmlAttribute.cs,
	  XmlDocument.cs,
	  XmlDocumentFragment.cs,
	  XmlElement.cs,
	  XmlEntity.cs,
	  XmlLinkedNode.cs,
	  XmlNode.cs,
	  XmlNotation.cs :
	  Added namespace checking flag (required for such xml readers
	  that holds Namespaces=false). Now only XmlNode holds LastLinkedNode.
	* XmlDocumentType.cs,
	  XmlEntity.cs,
	  XmlEntityReference.cs : The children of Entity and EntityReference
	  became correct. They now holds parsed nodes, but it is only when
	  they are appended to the document.
	* XmlNode.cs : Modified insertBeforeIntern() to InsertBefore() with
	  boolean checkNodeType argument.  This method also tries to create
	  Entity's and EntityReference's child nodes.  Also added internal
	  RemoveChild() with boolean checkNodeType argument.
	* XmlNodeReader.cs : Quick hack for ResolveEntity() that became
	  broken with these changes. use InnerXml as input to entityReader.
	* XmlTextReader.cs : XmlDeclaration's value LocalName should be the
	  same as Name.  The names of DTD's pseudo attributes should be empty.
	  Fixed DTD node's Depth (was regarded as attribute value's depth).

svn path=/trunk/mcs/; revision=22767
2004-02-04 17:48:06 +00:00
Atsushi Eno 93f58ac5c6 2003-07-27 Atsushi Enomoto <[email protected]>
* XmlLinkedNode.cs : added internal IsRooted.

svn path=/trunk/mcs/; revision=16724
2003-07-27 02:10:41 +00:00
Atsushi Eno 7ff3fe6a23 2003-05-24 Atsushi Enomoto <[email protected]>
* XmlAttribute.cs, XmlCharacterData.cs, XmlComment.cs, XmlDocument.cs,
	  XmlDocumentFragment.cs, XmlElement.cs, XmlEntity.cs, XmlLinkedNode.cs,
	  XmlNode.cs, XmlNotation.cs, XmlProcessingInstruction.cs, XmlReader.cs,
	  XmlSignificantWhitespace.cs, XmlText.cs, XmlWhitespace.cs:
	  Reverted the recent accessibility mistake (5/16).
	* XmlDocument.cs, XmlNode.cs : moved actual CreateNavigator() logic
	  from XmlNode to XmlDocument.

svn path=/trunk/mcs/; revision=14836
2003-05-23 16:38:07 +00:00
Atsushi Eno d758de53b7 2003-05-16 Atsushi Enomoto <[email protected]>
* changed XPathNodeType modifier to internal *protected* override.
	* XmlAttribute.cs : .ctor() now checks name validity e.g. xmlns.
	* XmlAttribute.cs, XmlElement.cs : set_Prefix checks NCName validity.
	* XmlAttributeCollection.cs : removed some incorrect TODO attributes.
	* XmlDocument.cs ; CreateAttribute(name) now auto-completes xmlns NSURI
	  when the argument is "xmlns".
	* XmlElement.cs : more compliant IsEmpty support. See also WriteTo().
	* XmlNamespaceManager.cs : added initial "xml" and "xmlns" namespaces.
	* XmlNode.cs : ser_InnerXml() throws InvalidOperationException.
	* XmlNodeReader.cs : LookupNamespace() refactory. Fixed ReadInnerXml()
	  not to set error state for non-started XmlNodeReader.
	* XmlTextReader.cs : fixed ReadAttributeValue() not to reset state.
	  BaseURI support. Fixed Initialize() to handle Attribute correctly.
	  SetProperty for attribute auto-completes xmlns NSURI.
	  Attribute and whitespace handling became more correct.
	  Don't parse external DTD if XmlResolver is null.
	* XmlTextWriter.cs : implemented WriteEntityRef().
	  WriteStartAttribute() checks if ns does not equal to that of xmlns.
	* XmlWriter.cs : trivial refactoring (WriteNode() xmldecl output).

svn path=/trunk/mcs/; revision=14613
2003-05-15 20:13:22 +00:00
Atsushi Eno 099042bca0 *** empty log message ***
svn path=/trunk/mcs/; revision=8683
2002-10-30 19:41:13 +00:00
Atsushi Eno ff784d30c3 * XmlAttribute.cs : add internal 'IsDefault' property
(equals to !Specified)
	* XmlImplementation.cs : added 'internalNameTable' property.
	* XmlDocument.cs :
	    + now allows "" for 'standalone' in CreateXmlDeclaration.
	    + implemented 'Implementation' property and constructor with it.
	    + added logic for appending name table (but still no use)
	    + implemented property 'DocumentType'
	      (but without internalSubset parsing. wait for next update.)
	* XmlNode.cs :
	    + modified AppendChild() and RemoveChild() to support fragment.
	    + modified AppendChild() to remove newChild from its parent
	      when newChild is already in the other place.
	    + modified RemoveChild() to set parentNode null.
	    + modified ConstructDOM() to create DocumentType,
	      and fixed access modifier ('internal protected' to 'internal')
	* XmlLinkedNode.cs : fixed 'NextSibling' to return null
		when its parent is null.
	* XmlDocumentFragment.cs : added internal override 'LastLinkedChild'
		property to enable AppendChild() for this class.
	* XmlTextReader.cs : appended private publicId and systemId fields.

svn path=/trunk/mcs/; revision=8630
2002-10-28 17:51:36 +00:00
Atsushi Eno 755b1236a8 * XmlAttribute.cs : add internal 'IsDefault' property
(equals to !Specified)
	* XmlImplementation.cs : added 'internalNameTable' property.
	* XmlDocument.cs :
	    + now allows "" for 'standalone' in CreateXmlDeclaration.
	    + implemented 'Implementation' property and constructor with it.
	    + added logic for appending name table (but still no use)
	    + implemented property 'DocumentType'
	      (but without internalSubset parsing. wait for next update.)
	* XmlNode.cs :
	    + modified AppendChild() and RemoveChild() to support fragment.
	    + modified AppendChild() to remove newChild from its parent
	      when newChild is already in the other place.
	    + modified RemoveChild() to set parentNode null.
	    + modified ConstructDOM() to create DocumentType,
	      and fixed access modifier ('internal protected' to 'internal')
	* XmlLinkedNode.cs : fixed 'NextSibling' to return null
		when its parent is null.
	* XmlDocumentFragment.cs : added internal override 'LastLinkedChild'
		property to enable AppendChild() for this class.
	* XmlTextReader.cs : appended private publicId and systemId fields.

svn path=/trunk/mcs/; revision=8624
2002-10-28 17:15:07 +00:00
Jason Diamond 4d82c52aeb In System.Xml:
* XmlDocumentNavigator.cs: Added file to directory.

* XmlNode.cs (CreateNavigator): Implemented.
(InnerText): Implemented.

* XmlDocument.cs (NamespaceURI, Prefix): Return String.Empty instead of
throwing exception.
(Load(XmlReader)): Allow for namespace qualified attributes.

* XmlElement.cs: Implemented GetAttribute(string, string) and both
GetAttributeNode overloads.
(SetAttributeNode(XmlAttribute)): Implemented.

* XmlNamedNodeMap.cs: Fixed copy/paste bugs in GetNamedItem(string, string)
and RemoveNamedItem(string, string).

* XmlLinkedNode.cs (PreviousSibling): Implemented.

* XmlTextReader.cs: Added code to maintain the order of attributes as
they're parsed. XML doesn't require this but Microsoft's parser does it and
matching them makes testing easier so now we have it, too.

In Test:

* XPathNavigatorTests.cs: Added file to directory.

* AllTests.cs: Added XPathNavigatorTests to suite.

* XmlTextReaderTests.cs: Added test to make sure attributes are ordered
like Microsoft's parser does it.

svn path=/trunk/mcs/; revision=4971
2002-05-27 19:17:13 +00:00
Piers Haken 84187bf9a6 fixed member accessibility to match MS (corcompare).
svn path=/trunk/mcs/; revision=3531
2002-04-01 06:07:43 +00:00
Duncan Mak c6fbc77fe6 2002-03-12 Duncan Mak <[email protected]>
* XmlCharacterData.cs: Reformatted the properties for better readability.

	* XmlLinkedNode.cs: Removed the awful boxy comments.

	* XmlNamedNodeMap.cs (Count):
	(Item): Implemented. Tests will be coming.

	* XmlEntityReference.cs:
	* XmlSignificantWhitespace.cs: Implemented these classes except for
	the Clone, WriteContentTo and WriteTo methods. Will have to
	investigate into these later.

svn path=/trunk/mcs/; revision=3081
2002-03-13 00:04:40 +00:00
Kral Ferch 8054460332 XmlNodeListChildren implements XmlNodeList for XmlNode.ChildNodes
svn path=/trunk/mcs/; revision=2987
2002-03-08 04:45:30 +00:00
Kral Ferch 3ecbf47486 rewrote XmlNode with touchups to XmlDocument, XmlElement, and XmlLinkedNode
svn path=/trunk/mcs/; revision=2954
2002-03-07 02:32:39 +00:00
Jason Diamond 5c5921fbf6 Fixes for XmlComment, XmlProcessingInstruction, and XmlDocument courtesy of Kral Ferch <[email protected]>.
svn path=/trunk/mcs/; revision=2866
2002-03-03 17:23:46 +00:00
Daniel Weber e4c6a12643 Fix constructors
svn path=/trunk/mcs/; revision=1400
2001-11-20 22:43:26 +00:00
Daniel Weber 227b56db7a add new System.Xml classes
svn path=/trunk/mcs/; revision=1389
2001-11-19 20:15:32 +00:00