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

◆ MoveToFollowing() [2/6]

override bool System.Xml.DocumentXPathNavigator.MoveToFollowing ( string localName,
string namespaceUri,
XPathNavigator end )
inline

Definition at line 897 of file DocumentXPathNavigator.cs.

898 {
899 XmlNode xmlNode = null;
901 if (documentXPathNavigator != null)
902 {
903 if (_document != documentXPathNavigator._document)
904 {
905 return false;
906 }
907 XmlNodeType nodeType = documentXPathNavigator._source.NodeType;
908 if (nodeType == XmlNodeType.Attribute)
909 {
911 if (!documentXPathNavigator.MoveToNonDescendant())
912 {
913 return false;
914 }
915 }
917 }
918 XmlNode xmlNode2 = _source;
919 if (xmlNode2.NodeType == XmlNodeType.Attribute)
920 {
921 xmlNode2 = ((XmlAttribute)xmlNode2).OwnerElement;
922 if (xmlNode2 == null)
923 {
924 return false;
925 }
926 }
927 do
928 {
929 XmlNode firstChild = xmlNode2.FirstChild;
930 if (firstChild != null)
931 {
933 }
934 else
935 {
936 XmlNode nextSibling;
937 while (true)
938 {
939 nextSibling = xmlNode2.NextSibling;
940 if (nextSibling != null)
941 {
942 break;
943 }
944 XmlNode parentNode = xmlNode2.ParentNode;
945 if (parentNode != null)
946 {
947 xmlNode2 = parentNode;
948 continue;
949 }
950 return false;
951 }
953 }
954 if (xmlNode2 == xmlNode)
955 {
956 return false;
957 }
958 }
959 while (xmlNode2.NodeType != XmlNodeType.Element || xmlNode2.LocalName != localName || xmlNode2.NamespaceURI != namespaceUri);
961 return true;
962 }
DocumentXPathNavigator(XmlDocument document, XmlNode node)

References System.Xml.DocumentXPathNavigator.DocumentXPathNavigator(), System.Xml.DocumentXPathNavigator._document, System.Xml.DocumentXPathNavigator._source, and System.Xml.Dictionary.