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

◆ SelectDescendants() [1/2]

override XPathNodeIterator System.Xml.DocumentXPathNavigator.SelectDescendants ( string localName,
string namespaceURI,
bool matchSelf )
inlinevirtual

Reimplemented from System.Xml.XPath.XPathNavigator.

Definition at line 1291 of file DocumentXPathNavigator.cs.

1292 {
1294 if (text == null || _source.NodeType == XmlNodeType.Attribute)
1295 {
1296 return new DocumentXPathNodeIterator_Empty(this);
1297 }
1298 string text2 = _document.NameTable.Get(localName);
1299 if (text2 == null)
1300 {
1301 return new DocumentXPathNodeIterator_Empty(this);
1302 }
1303 if (text2.Length == 0)
1304 {
1305 if (matchSelf)
1306 {
1307 return new DocumentXPathNodeIterator_ElemChildren_AndSelf_NoLocalName(this, text);
1308 }
1309 return new DocumentXPathNodeIterator_ElemChildren_NoLocalName(this, text);
1310 }
1311 if (matchSelf)
1312 {
1313 return new DocumentXPathNodeIterator_ElemChildren_AndSelf(this, text2, text);
1314 }
1315 return new DocumentXPathNodeIterator_ElemChildren(this, text2, text);
1316 }
string? Get(char[] array, int offset, int length)
XmlNodeType NodeType
Definition XmlNode.cs:73

References System.Xml.DocumentXPathNavigator._document, System.Xml.DocumentXPathNavigator._source, System.Xml.XmlNameTable.Get(), System.Xml.XmlDocument.NameTable, System.Xml.XmlNode.NodeType, and System.text.