Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ MoveToNextAttribute()

bool System.Xml.XPathNodePointer.MoveToNextAttribute ( bool bFirst)
inlinepackage

Definition at line 629 of file XPathNodePointer.cs.

630 {
631 RealFoliate();
632 if (_node != null)
633 {
634 if (bFirst && (_column != null || _node.NodeType != XmlNodeType.Element))
635 {
636 return false;
637 }
638 if (!bFirst)
639 {
640 if (_column != null && _column.ColumnMapping != MappingType.Attribute)
641 {
642 return false;
643 }
644 if (_column == null && _node.NodeType != XmlNodeType.Attribute)
645 {
646 return false;
647 }
648 }
649 if (!IsFoliated(_node))
650 {
653 {
654 if (dataColumn.Namespace != "http://www.w3.org/2000/xmlns/")
655 {
657 return true;
658 }
659 }
660 return false;
661 }
662 if (bFirst)
663 {
664 XmlAttributeCollection attributes = _node.Attributes;
665 foreach (XmlAttribute item in attributes)
666 {
667 if (item.NamespaceURI != "http://www.w3.org/2000/xmlns/")
668 {
669 MoveTo(item, null, fOnValue: false);
670 return true;
671 }
672 }
673 }
674 else
675 {
676 XmlAttributeCollection attributes2 = ((XmlAttribute)_node).OwnerElement.Attributes;
677 bool flag = false;
678 foreach (XmlAttribute item2 in attributes2)
679 {
680 if (flag && item2.NamespaceURI != "http://www.w3.org/2000/xmlns/")
681 {
682 MoveTo(item2, null, fOnValue: false);
683 return true;
684 }
685 if (item2 == _node)
686 {
687 flag = true;
688 }
689 }
690 }
691 }
692 return false;
693 }
virtual MappingType ColumnMapping
DataColumn NextColumn(DataRow row, DataColumn col, bool fAttribute)
bool MoveTo(XPathNodePointer pointer)
virtual ? XmlAttributeCollection Attributes
Definition XmlNode.cs:106
XmlNodeType NodeType
Definition XmlNode.cs:73

References System.Xml.XPathNodePointer._column, System.Xml.XPathNodePointer._node, System.Xml.XmlNode.Attributes, System.Data.DataColumn.ColumnMapping, System.Xml.Dictionary, System.Xml.XPathNodePointer.IsFoliated(), System.item, System.Xml.XPathNodePointer.MoveTo(), System.Xml.XPathNodePointer.NextColumn(), System.Xml.XmlNode.NodeType, System.Xml.XPathNodePointer.RealFoliate(), and System.Xml.XPathNodePointer.Row.

Referenced by System.Xml.DataDocumentXPathNavigator.MoveToFirstAttribute(), and System.Xml.DataDocumentXPathNavigator.MoveToNextAttribute().