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

◆ MoveToNamespace()

override bool System.Xml.DocumentXPathNavigator.MoveToNamespace ( string name)
inlinevirtual

Reimplemented from System.Xml.XPath.XPathNavigator.

Definition at line 393 of file DocumentXPathNavigator.cs.

394 {
395 if (name == _document.strXmlns)
396 {
397 return false;
398 }
399 XmlElement xmlElement = _source as XmlElement;
400 if (xmlElement != null)
401 {
402 string localName = ((name == null || name.Length == 0) ? _document.strXmlns : name);
403 string strReservedXmlns = _document.strReservedXmlns;
404 do
405 {
406 XmlAttribute attributeNode = xmlElement.GetAttributeNode(localName, strReservedXmlns);
407 if (attributeNode != null)
408 {
409 _namespaceParent = (XmlElement)_source;
411 return true;
412 }
414 }
415 while (xmlElement != null);
416 if (name == _document.strXml)
417 {
418 _namespaceParent = (XmlElement)_source;
420 return true;
421 }
422 }
423 return false;
424 }
XmlAttribute NamespaceXml

References System.Xml.DocumentXPathNavigator._document, System.Xml.DocumentXPathNavigator._namespaceParent, System.Xml.DocumentXPathNavigator._source, System.Xml.Dictionary, System.Xml.XmlDocument.NamespaceXml, System.Xml.XmlDocument.strReservedXmlns, System.Xml.XmlDocument.strXml, and System.Xml.XmlDocument.strXmlns.