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

◆ MoveToNextNamespace() [2/2]

bool System.Xml.XPathNodePointer.MoveToNextNamespace ( XPathNamespaceScope namespaceScope)
inlinepackage

Definition at line 1460 of file XPathNodePointer.cs.

1461 {
1462 RealFoliate();
1463 XmlNode xmlNode = _node;
1464 if (_column != null)
1465 {
1467 {
1468 return false;
1469 }
1470 XmlBoundElement xmlBoundElement = _node as XmlBoundElement;
1473 {
1474 if (dataColumn.Namespace == "http://www.w3.org/2000/xmlns/")
1475 {
1477 return true;
1478 }
1479 }
1481 {
1482 return false;
1483 }
1484 do
1485 {
1486 xmlNode = xmlNode.ParentNode;
1487 }
1488 while (xmlNode != null && xmlNode.NodeType != XmlNodeType.Element);
1489 }
1490 else if (_node.NodeType == XmlNodeType.Attribute)
1491 {
1492 XmlAttribute xmlAttribute = (XmlAttribute)_node;
1493 xmlNode = xmlAttribute.OwnerElement;
1494 if (xmlNode == null)
1495 {
1496 return false;
1497 }
1499 {
1500 return false;
1501 }
1502 if (MoveToNextNamespace((XmlBoundElement)xmlNode, null, xmlAttribute))
1503 {
1504 return true;
1505 }
1507 {
1508 return false;
1509 }
1510 do
1511 {
1513 }
1514 while (xmlNode != null && xmlNode.NodeType != XmlNodeType.Element);
1515 }
1516 while (xmlNode != null)
1517 {
1518 XmlBoundElement be = xmlNode as XmlBoundElement;
1519 if (MoveToNextNamespace(be, null, null))
1520 {
1521 return true;
1522 }
1523 do
1524 {
1526 }
1527 while (xmlNode != null && xmlNode.NodeType == XmlNodeType.Element);
1528 }
1530 {
1532 return true;
1533 }
1534 return false;
1535 }
readonly XmlDataDocument _doc
bool MoveToNextNamespace(XmlBoundElement be, DataColumn col, XmlAttribute curAttr)
DataColumn PreviousColumn(DataRow row, DataColumn col, bool fAttribute)
bool MoveTo(XPathNodePointer pointer)
virtual ? XmlNode ParentNode
Definition XmlNode.cs:76
XmlNodeType NodeType
Definition XmlNode.cs:73

References System.Xml.XmlNode.NodeType, System.Xml.XmlAttribute.OwnerElement, System.Xml.XmlNode.ParentNode, and System.Xml.XmlBoundElement.Row.