Commit Graph
40 Commits
Author SHA1 Message Date
Atsushi Eno 29dd077cdd 2009-01-20 Atsushi Enomoto <[email protected]>
* XmlDocumentNavigator.cs : in some corner cases an attribute
	  may have null OwnerElement. Fixed bug #458245.

	* SelectNodesTests.cs : added test for bug #458245.


svn path=/trunk/mcs/; revision=123868
2009-01-20 10:46:06 +00:00
Atsushi Eno e30d02ad83 merge XPath optimization branch. About 15% faster/less memory use so
far.


svn path=/trunk/mcs/; revision=118710
2008-11-13 13:05:44 +00:00
Atsushi Eno 57b933955b 2008-09-10 Atsushi Enomoto <[email protected]>
* XmlDocument.cs, XmlDocumentNavigator.cs :
          reduce navigator fields.


svn path=/trunk/mcs/; revision=112645
2008-09-10 08:24:55 +00:00
Atsushi Eno 5adf96e28f 2006-02-04 Atsushi Enomoto <[email protected]>
* XmlDocumentNavigator.cs : make use of HasAttributes (avoid possible
	  XmlAttributeCollection creation).


svn path=/trunk/mcs/; revision=56559
2006-02-04 07:52:13 +00:00
Atsushi Eno 260014cbd3 2005-12-14 Atsushi Enomoto <[email protected]>
Added UnderlyingObject support.


svn path=/trunk/mcs/; revision=54353
2005-12-14 08:36:22 +00:00
Atsushi Eno 9546c7879c 2005-12-14 Atsushi Enomoto <[email protected]>
* XPathEditableDocument.cs : added 2.0 SchemaInfo.

	* XmlDocument.cs : changed some exception types.
	* XmlDocumentNavigator.cs : added 2.0 SchemaInfo.


svn path=/trunk/mcs/; revision=54344
2005-12-14 06:52:29 +00:00
Atsushi Eno 29581a1ead 2005-10-23 Atsushi Enomoto <[email protected]>
* XPathNavigator.cs : now 2.0 MoveToFirst() invokes internal
	  MoveToFirstImpl() and it is from what XmlDocumentNavigator did.
	  This fixes XPathEditableDocument.MoveToFirst().

	* XmlDocumentNavigator.cs : now MoveToFirst() invokes internal
	  MoveToFirstImpl().


svn path=/trunk/mcs/; revision=52108
2005-10-23 20:45:26 +00:00
Atsushi Eno df1ee3d110 2004-03-15 Atsushi Enomoto <[email protected]>
* XPathNavigator.cs : In ComparePosition(), make use of IsDescendant().

	* XmlDocumentNavigator.cs : overriden IsDescendant (default 
	  implementation extraneously clones).



svn path=/trunk/mcs/; revision=41861
2005-03-15 21:24:18 +00:00
Atsushi Eno c772137287 2005-02-26 Atsushi Enomoto <[email protected]>
* 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
2005-02-26 16:54:11 +00:00
Atsushi Eno 275a07c82e 2005-02-25 Atsushi Enomoto <[email protected]>
* XmlDocumentNavigator.cs : iteratedNames array could be fixed and
	  performance got improved. Patch by Knstantin Triger.


svn path=/trunk/mcs/; revision=41182
2005-02-25 07:21:28 +00:00
Atsushi Eno 5f5e3472a9 2005-02-23 Atsushi Enomoto <[email protected]>
* XmlDocumentNavigator.cs : it should virtually expand EntityReference,
	  so refactored to handle both entity references and top level children.


svn path=/trunk/mcs/; revision=41082
2005-02-23 07:53:00 +00:00
Atsushi Eno 1c93b8f685 2005-02-21 Atsushi Enomoto <[email protected]>
* 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
2005-02-21 13:11:35 +00:00
Atsushi Eno 25683590a7 2004-11-05 Atsushi Enomoto <[email protected]>
* XmlDocumentNavigator.cs : create rarely-used ArrayList later. This
	  significantly improves XmlDocument-based XPath performance.

svn path=/trunk/mcs/; revision=35760
2004-11-06 05:34:39 +00:00
Atsushi Eno 0018d2cc28 2004-10-29 Atsushi Enomoto <[email protected]>
* XmlDocumentNavigator.cs : GetNode() should consider namespace nodes.
	* XmlNode.cs : dustclean.

svn path=/trunk/mcs/; revision=35415
2004-10-29 01:13:03 +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 ee1e56e2a5 2004-06-14 Atsushi Enomoto <[email protected]>
* XmlDocumentNavigator.cs : MoveToNext() should skip concatenating
	  text/cdata/whitespace nodes.

svn path=/trunk/mcs/; revision=29495
2004-06-14 13:07:32 +00:00
Atsushi Eno efbe5ce8d5 2004-04-20 Atsushi Enomoto <[email protected]>
* XmlDocumentNavigator.cs : MoveToFirstChild() failed when there is
	  only an EntityReference (not navigatable) child. Bug #57248 fixed.
	* XmlWriter.cs : Modified WriteNode() to use MoveToAttribute(int)
	  instead of WriteAttributes() only for MS.NET behavior compatibility.
	  This change makes SgmlReader usable (due to SgmlReader bug).

svn path=/trunk/mcs/; revision=25718
2004-04-20 11:59:33 +00:00
Atsushi Eno 22937e9d73 2004-03-31 Atsushi Enomoto <[email protected]>
* XmlDocumentNavigator.cs : When this instance is created from xmlns
	  attributes, it should be Namespace node.

svn path=/trunk/mcs/; revision=24838
2004-03-31 12:59:35 +00:00
Atsushi Eno 5e6c273dd5 2004-03-24 Atsushi Enomoto <[email protected]>
* XmlDocumentNavigator.cs : MoveTo*Namespace() should not iterate
	  namespace nodes which has the same name as already-iterated nodes.
	  Also xmlns='' should not be selected, and once it appeared, default
	  namespace should not be selected anymore.

svn path=/trunk/mcs/; revision=24531
2004-03-24 18:20:14 +00:00
Atsushi Eno 3df559acfa 2004-03-16 Atsushi Enomoto <[email protected]>
* XmlDocumentNavigator.cs : Value should return concatenated string for
	  sequential text nodes. Considered detached nodes, the result of
	  MoveToParent() should be checked.

svn path=/trunk/mcs/; revision=24107
2004-03-16 04:32:32 +00:00
Atsushi Eno 1d94aed7e1 2004-03-14 Atsushi Enomoto <[email protected]>
* XmlDocumentNavigator.cs : as for namespace node "xml", MS.NET seems
	  to return attribute node. It affects on IHasXmlNode.GetNode() and
	  SelectNodes()/SelectSingleNode().

svn path=/trunk/mcs/; revision=24020
2004-03-14 19:24:16 +00:00
Atsushi Eno 8256002451 2004-02-08 Atsushi Enomoto <[email protected]>
* DTDObjectModel.cs : Limit external entity reference from DTD by 256.
	  foreach elimination.  DTDParameterEntityDeclaration should set Root.
	  Compute attribute default value without raising an error.
	  (for non-error reporting reader)
	* DTDReader.cs : Fixes for the above fixes. foreach elimination.
	* DTDValidatingReader.cs, NameTable.cs, XmlAttribute.cs,
	  XmlAttributeCollection.cs, XmlChar.cs, XmlConstruct.cs,
	  XmlDocumentFragment.cs, XmlDocumentNavigator.cs, XmlElement.cs,
	  XmlEntityReference.cs, XmlNamedNodeMap.cs, XmlNode.cs,
	  XmlText.cs : foreach elimination.
	* XmlDocument.cs, XmlSignificantWhitespace.cs, XmlWhitespace.cs :
	  foreach elimination. Removed unnecesary methods.
	* XmlTextReader.cs : code format refactory. Optimized some methods.
	  foreach elimination. Replaced Stack with string array.
	  Replaced StringBuilder with char array. Removed unnecessary methods.

svn path=/trunk/mcs/; revision=22891
2004-02-08 20:27:04 +00:00
Atsushi Eno 98ac1234b3 2003-12-11 Atsushi Enomoto <[email protected]>
* XmlDocumentNavigator.cs : Fixed MoveToNextAttribute (and
	  MoveToNextNamespace) that might result in NullReferenceException.
	  patch by Sanjay Gupta. This fixed bug #51941 (and possibly #51415)

svn path=/trunk/mcs/; revision=21013
2003-12-11 04:13:30 +00:00
Atsushi Eno dd1a4d6aa4 2003-12-04 Atsushi Enomoto <[email protected]>
* XmlTextWriter.cs : WriteComment() should block "--", not full "-->".
	* XmlDocumentNavigator.cs : Added null check in MoveToNextAttribute().
	  This may fix bug #51415.

svn path=/trunk/mcs/; revision=20778
2003-12-04 16:30:38 +00:00
Atsushi Eno b66b7ca806 2003-11-02 Atsushi Enomoto <[email protected]>
* XmlDocumentNavigator.cs : Fixed MoveToFirstChild() and MoveToNext()
	  to skip XmlEntityReference.
	* XmlTextWriter.cs : Fixed AddMissingElements() and
	  WriteStartAttribute() not to emit extraneous xmlns.

svn path=/trunk/mcs/; revision=19552
2003-11-02 14:15:04 +00:00
Atsushi Eno 1bf025113f 2003-09-26 Atsushi Enomoto <[email protected]>
* XmlDocumentNavigator.cs : Fix for bugzilla #48931. MoveToRoot() now
	  considers such case that target node was not adapted to the document.
	* XmlNamespaceManager.cs : GetEnumerator() missed the last pair.
	* XmlTextWriter.cs : use 'as'  instead of 'try..catch'.

svn path=/trunk/mcs/; revision=18308
2003-09-26 12:31:49 +00:00
Ben Maurer f45be9e722 2003-09-25 Ben Maurer <[email protected]>
* XmlNode.cs (XPathNodeType): Give more useful debugging message.
	* XmlDocumentNavigator.cs (MoveToPrevious): Needs same checks as
	in MoveToNext.

svn path=/trunk/mcs/; revision=18302
2003-09-26 00:39:16 +00:00
Atsushi Eno 7d1f83ba18 2003-08-19 Atsushi Enomoto <[email protected]>
* XmlDocumentNavigator.cs : Fixed MoveToFirstNamespace() that arose
	  infinite loop.
	* XmlNamespaceManager.cs : Renamed AtomStrEq to AtomicStringEquals.
	  Commented out Console.Error.WriteLine().
	* XmlUrlResolver.cs : Fixed ResolveUri() and GetEntity() to support
	  escape and unescape for relative URI string.

svn path=/trunk/mcs/; revision=17414
2003-08-19 19:26:14 +00:00
Atsushi Eno 60ce78b476 2003-06-30 Atsushi Enomoto <[email protected]>
* XmlDocumentNavigator.cs : Implemented MoveTo*Namespace() and
	  essentially changed most of the property handling (e.g. removed attribute
	  enumerator and it now became really cloneable).
	* XmlNodeReader.cs : ReadInnerXml() changes its state as error
	  when the method is called at Initial state.

svn path=/trunk/mcs/; revision=15773
2003-06-30 17:17:29 +00:00
Atsushi Eno 80f8dc00d4 2003-06-25 Atsushi Enomoto <[email protected]>
* XmlDocumentNavigator.cs : Fixed IsEmptyElement. It treats <foo></foo>
	  as non-empty, and XmlElement's IsEmpty is designed as such.
	  Fixed MoveToFirst() and MoveToNext() not to move to xmldecl nor
	  doctype node.
	* XmlNode.cs : Fixed XPathNodeType. It should throw an exception
	  instead of returning undefined enum value.
	  Modified some code comments.
	* XmlWriter.cs : Fixed WriteNode () to use WriteFullEndElement()
	  when XmlReader's node is not at empty element or at EndElement.
	  Fixed XmlDeclaration's standalone check.

svn path=/trunk/mcs/; revision=15632
2003-06-25 17:31:57 +00:00
Duncan Mak 55448b57e3 2003-06-10 Duncan Mak <[email protected]>
* XmlDocumentNavigator.cs (GetNode): Make it implement
	IHasXmlNode.

        Hopefully I fixed the space/tab thing. Let's just all use
        spaces, it's just easier....

svn path=/trunk/mcs/; revision=15262
2003-06-10 06:07:01 +00:00
Atsushi Eno f8f3f154d2 2003-06-02 Atsushi Enomoto <[email protected]>
* XmlDocumentNavigator.cs : quick fix for MoveToFirstChild().
	* XmlConvert.cs : fixed VerifyNCName() to check correctly.

svn path=/trunk/mcs/; revision=15064
2003-06-02 03:02:55 +00:00
Atsushi Eno 30cfd0b479 2003-06-01 Atsushi Enomoto <[email protected]>
* XmlDocumentNavigator.cs : Compute document node one time.
	  MoveToFirstChild() should move to PIs and comments.

svn path=/trunk/mcs/; revision=15039
2003-06-01 05:56:49 +00:00
Atsushi Eno 589edac804 2003-03-22 Atsushi Enomoto <[email protected]>
* XmlTextWriter.cs : WriteStartDocument doesn't set hasRoot=true, then
	  WriteEndDocument without root element now raises an error correctly.
	* XmlDocumentNavigator.cs : (MoveToFirstChild) fixed bugzilla #36672.
	  implemented BaseURI, NameTable, XmlLang, GetAttributes, GetNamespace,
	  MoveToAttribute.

svn path=/trunk/mcs/; revision=12739
2003-03-22 07:54:42 +00:00
Piers Haken 04d50fc445 2002-10-26 Piers Haken <[email protected]>
* XmlNode.cs: add virtual property XPathNodeType
	* XmlAttribute.cs:
	* XmlComment.cs:
	* XmlDocument.cs:
	* XmlElement.cs::
	* XmlProcessingInstruction.cs:
	* XmlSignificantWhitespace.cs:
	* XmlText.cs:
	* XmlWhitespace.cs: implement XPathNodeType property
	* XmlDocumentNavigator.cs: use XPathNodeType property instead of switch

svn path=/trunk/mcs/; revision=8585
2002-10-26 23:06:29 +00:00
Piers Haken 3cac85224b 2002-10-26 Piers Haken <[email protected]>
* XmlDocumentNavigator.cs: return invalid XPathNodeType (-1) for unknown node types.

svn path=/trunk/mcs/; revision=8584
2002-10-26 22:27:52 +00:00
Piers Haken 234ede86c6 2002-09-12 Piers Haken <[email protected]>
* XmlDocumentNavigator.cs: implement MoveToId()

svn path=/trunk/mcs/; revision=7423
2002-09-13 02:15:40 +00:00
Jason Diamond 450a73a6d5 Fixed MoveToParent issues with the navigator and attributes.
svn path=/trunk/mcs/; revision=5807
2002-07-15 02:58:29 +00:00
Piers Haken 8d73a2306c 2002-06-23 Piers Haken <[email protected]>
System.Xml:

    * XmlDocumentNavigator.cs: implement Clone()
    * XmlElement.cs: remove bogus unimplemented override of InnerText
    * XmlNode.cs: implment SelectNodes/SelectSingleNode
    * XmlNodeArrayList.cs: new support class for SelectNodes

System.Xml.Xsl:

    * XsltContext.cs: added 'PreserveWhitespace' abstract method

System.Xml.XPath:

    * XPathNavigator.cs: implement:
        - Compile
        - Evaluate
        - Clone
        - Select
        - ToString
        - some forwarding methods

    * XPathNodeIterator: implement caching Count

    * Tokenizer.cs: new XPath tokenizer
    * Parser.jay: new XPath grammar
    * Parser.cs: new precompiled XPath grammar
    * Expression.cs: new XPath expression objects
    * Iterator.cs: new XPath result/context objects
    * DefaultContext.cs: new XPath function binding context

svn path=/trunk/mcs/; revision=5421
2002-06-23 16:52:58 +00:00
Jason Diamond a71db778e8 When will I ever remember to add my new files before committing?
svn path=/trunk/mcs/; revision=4972
2002-05-27 19:18:16 +00:00