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

◆ MoveToNextNamespace() [1/2]

bool System.Xml.XPathNodePointer.MoveToNextNamespace ( XmlBoundElement be,
DataColumn col,
XmlAttribute curAttr )
inlineprivate

Definition at line 1342 of file XPathNodePointer.cs.

1343 {
1344 if (be != null)
1345 {
1346 if (be.IsFoliated)
1347 {
1348 XmlAttributeCollection attributes = be.Attributes;
1349 XmlAttribute xmlAttribute = null;
1350 bool flag = false;
1351 if (curAttr == null)
1352 {
1353 flag = true;
1354 }
1355 int num = attributes.Count;
1356 while (num > 0)
1357 {
1358 num--;
1359 xmlAttribute = attributes[num];
1360 if (flag && xmlAttribute.NamespaceURI == "http://www.w3.org/2000/xmlns/" && !DuplicateNS(be, xmlAttribute.LocalName))
1361 {
1363 return true;
1364 }
1365 if (xmlAttribute == curAttr)
1366 {
1367 flag = true;
1368 }
1369 }
1370 }
1371 else
1372 {
1373 DataRow row = be.Row;
1374 if (row == null)
1375 {
1376 return false;
1377 }
1379 {
1380 if (dataColumn.Namespace == "http://www.w3.org/2000/xmlns/" && !DuplicateNS(be, dataColumn.ColumnName))
1381 {
1383 return true;
1384 }
1385 }
1386 }
1387 }
1388 return false;
1389 }
DataColumn PreviousColumn(DataRow row, DataColumn col, bool fAttribute)
bool MoveTo(XPathNodePointer pointer)
bool DuplicateNS(XmlBoundElement endElem, string lname)

References System.Xml.XmlBoundElement.Attributes, System.Xml.XmlAttributeCollection.Count, System.Xml.XmlBoundElement.IsFoliated, System.Xml.XmlAttribute.LocalName, System.Xml.XmlAttribute.NamespaceURI, and System.Xml.XmlBoundElement.Row.

Referenced by System.Xml.XPathNodePointer.CompareNamespacePosition(), and System.Xml.DataDocumentXPathNavigator.MoveToNextNamespace().