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

◆ FindTypeNode()

XmlElement System.Data.XmlTreeGen.FindTypeNode ( XmlElement node,
string strType )
inlinepackage

Definition at line 1375 of file XmlTreeGen.cs.

1376 {
1377 if (node == null)
1378 {
1379 return null;
1380 }
1381 for (XmlNode xmlNode = node.FirstChild; xmlNode != null; xmlNode = xmlNode.NextSibling)
1382 {
1383 if (xmlNode is XmlElement)
1384 {
1386 if ((XMLSchema.FEqualIdentity(xmlElement, "element", "http://www.w3.org/2001/XMLSchema") || XMLSchema.FEqualIdentity(xmlElement, "attribute", "http://www.w3.org/2001/XMLSchema") || XMLSchema.FEqualIdentity(xmlElement, "complexType", "http://www.w3.org/2001/XMLSchema") || XMLSchema.FEqualIdentity(xmlElement, "simpleType", "http://www.w3.org/2001/XMLSchema")) && xmlElement.GetAttribute("name") == strType)
1387 {
1388 return xmlElement;
1389 }
1390 }
1391 }
1392 return null;
1393 }
virtual ? XmlNode FirstChild
Definition XmlNode.cs:120

References System.Xml.Dictionary, System.Data.XMLSchema.FEqualIdentity(), and System.Xml.XmlNode.FirstChild.

Referenced by System.Data.XmlTreeGen.AppendChildWithoutRef(), System.Data.XmlTreeGen.HandleColumn(), and System.Data.XmlTreeGen.HandleTable().