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

◆ MoveToNextSibling()

bool System.Xml.XPathNodePointer.MoveToNextSibling ( )
inlinepackage

Definition at line 720 of file XPathNodePointer.cs.

721 {
722 RealFoliate();
723 if (_node != null)
724 {
725 if (_column != null)
726 {
727 if (_fOnValue)
728 {
729 return false;
730 }
731 DataRow row = Row;
733 {
735 {
737 return true;
738 }
739 }
740 XmlNode xmlNode = _doc.SafeFirstChild(_node);
741 if (xmlNode != null)
742 {
744 return true;
745 }
746 }
747 else
748 {
749 XmlNode xmlNode2 = _node;
750 XmlNode parentNode = _node.ParentNode;
751 if (parentNode == null)
752 {
753 return false;
754 }
755 bool flag = XmlDataDocument.IsTextNode(_node.NodeType);
756 do
757 {
759 }
760 while ((xmlNode2 != null && flag && XmlDataDocument.IsTextNode(xmlNode2.NodeType)) || (xmlNode2 != null && !IsValidChild(parentNode, xmlNode2)));
761 if (xmlNode2 != null)
762 {
764 return true;
765 }
766 }
767 }
768 return false;
769 }
DataColumn NextColumn(DataRow row, DataColumn col, bool fAttribute)
readonly XmlDataDocument _doc
bool IsValidChild(XmlNode parent, XmlNode child)
bool MoveTo(XPathNodePointer pointer)
XmlNode SafeFirstChild(XmlNode n)
XmlNode SafeNextSibling(XmlNode n)
bool IsTextOnly(DataColumn c)
virtual ? XmlNode ParentNode
Definition XmlNode.cs:76
XmlNodeType NodeType
Definition XmlNode.cs:73

References System.Xml.XmlDataDocument.IsTextNode(), System.Xml.XmlNode.NodeType, and System.Xml.XmlNode.ParentNode.

Referenced by System.Xml.DataDocumentXPathNavigator.MoveToNext().