Inheritance: System.Xml.XPath.XPathNavigator, IHasXmlNode
 public DocumentXPathNavigator(DocumentXPathNavigator other)
 {
     _document = other._document;
     _source = other._source;
     _attributeIndex = other._attributeIndex;
     _namespaceParent = other._namespaceParent;
 }
 public DocumentXPathNavigator(DocumentXPathNavigator other)
 {
     this.document = other.document;
     this.source = other.source;
     this.attributeIndex = other.attributeIndex;
     this.namespaceParent = other.namespaceParent;
 }
Example #3
0
 private void SetCurrentPosition( DocumentXPathNavigator other ) {
     this._curNode = other.CurNode;
     //Debug.Assert( _curNode.NodeType == XmlNodeType.Document || _doc == _curNode.OwnerDocument );
     this._doc = other.Document;
     //this._root = other.Root;
     this._attrInd = other.CurAttrInd;
     this._attrs = other._attrs;
     this._parentOfNS = other.ParentOfNS;
     this.attrXmlNS = other.attrXmlNS; 
 }
 internal DocumentXPathNodeIterator_ElemChildren_AndSelf_NoLocalName(DocumentXPathNavigator nav, string nsAtom) : base(nav, nsAtom)
 {
 }
 internal DocumentXPathNodeIterator_ElemChildren_NoLocalName(DocumentXPathNavigator nav, string nsAtom) : base(nav)
 {
     Debug.Assert(((XmlNode)nav.UnderlyingObject).NodeType != XmlNodeType.Attribute);
     Debug.Assert(Ref.Equal(nav.NameTable.Get(nsAtom), nsAtom));
     _nsAtom = nsAtom;
 }
 internal DocumentXPathNodeIterator_AllElemChildren_AndSelf(DocumentXPathNavigator nav) : base(nav)
 {
 }
 internal DocumentXPathNodeIterator_AllElemChildren(DocumentXPathNavigator nav) : base(nav)
 {
     Debug.Assert(((XmlNode)nav.UnderlyingObject).NodeType != XmlNodeType.Attribute);
 }
 internal DocumentXPathNodeIterator_ElemDescendants(DocumentXPathNodeIterator_ElemDescendants other)
 {
     _nav = (DocumentXPathNavigator)(other._nav.Clone());
     _level = other._level;
     _position = other._position;
 }
 internal DocumentXPathNodeIterator_ElemDescendants( DocumentXPathNavigator nav ) {
     this.nav      = (DocumentXPathNavigator)(nav.Clone());
     this.level    = 0;
     this.position = 0;
 }
Example #10
0
 internal DocumentXPathNodeIterator_Empty(DocumentXPathNavigator nav) { _nav = nav.Clone(); }
Example #11
0
 internal DocumentXPathNodeIterator_AllElemChildren( DocumentXPathNavigator nav ) : base( nav ) {
     Debug.Assert( nav.CurNode.NodeType != XmlNodeType.Attribute );
 }
Example #12
0
 private DocumentXPathNavigator( DocumentXPathNavigator other ) {
     SetCurrentPosition(other);
 }
 internal DocumentXPathNodeIterator_ElemDescendants( DocumentXPathNodeIterator_ElemDescendants other ) {
     this.nav      = (DocumentXPathNavigator)(other.nav.Clone());
     this.level    = other.level;
     this.position = other.position;
 }
Example #14
0
        internal DocumentXPathNodeIterator_ElemChildren(DocumentXPathNavigator nav, string localNameAtom, string nsAtom) : base(nav)
        {
            Debug.Assert(((XmlNode)nav.UnderlyingObject).NodeType != XmlNodeType.Attribute);
            Debug.Assert(Ref.Equal(nav.NameTable.Get(localNameAtom), localNameAtom));
            Debug.Assert(Ref.Equal(nav.NameTable.Get(nsAtom), nsAtom));
            Debug.Assert(localNameAtom.Length > 0);   // Use DocumentXPathNodeIterator_ElemChildren_NoLocalName class for special magic value of localNameAtom

            this.localNameAtom = localNameAtom;
            this.nsAtom = nsAtom;
        }
Example #15
0
 internal DocumentXPathNodeIterator_ElemDescendants(DocumentXPathNavigator nav)
 {
     _nav = (DocumentXPathNavigator)(nav.Clone());
     _level = 0;
     _position = 0;
 }
Example #16
0
 internal DocumentXPathNodeIterator_ElemChildren_AndSelf(DocumentXPathNavigator nav, string localNameAtom, string nsAtom)
     : base(nav, localNameAtom, nsAtom)
 {
     Debug.Assert(localNameAtom.Length > 0);   // Use DocumentXPathNodeIterator_ElemChildren_AndSelf_NoLocalName if localName == String.Empty
 }
 internal DocumentXPathNodeIterator_ElemChildren_NoLocalName(DocumentXPathNavigator nav, string nsAtom) : base(nav)
 {
     this.nsAtom = nsAtom;
 }