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

◆ SearchMatchingTableSchema() [2/2]

DataTable System.Xml.DataSetMapper.SearchMatchingTableSchema ( XmlBoundElement rowElem,
XmlBoundElement elem )
inlinepackage

Definition at line 56 of file DataSetMapper.cs.

57 {
58 DataTable dataTable = SearchMatchingTableSchema(elem.LocalName, elem.NamespaceURI);
59 if (dataTable == null)
60 {
61 return null;
62 }
63 if (rowElem == null)
64 {
65 return dataTable;
66 }
68 if (columnSchemaForNode == null)
69 {
70 return dataTable;
71 }
72 foreach (XmlAttribute attribute in elem.Attributes)
73 {
74 if ((object)attribute.NamespaceURI != "http://www.w3.org/2000/xmlns/")
75 {
76 return dataTable;
77 }
78 }
79 for (XmlNode xmlNode = elem.FirstChild; xmlNode != null; xmlNode = xmlNode.NextSibling)
80 {
81 if (xmlNode.NodeType == XmlNodeType.Element)
82 {
83 return dataTable;
84 }
85 }
86 return null;
87 }
DataColumn GetColumnSchemaForNode(XmlBoundElement rowElem, XmlNode node)
DataTable SearchMatchingTableSchema(string localName, string namespaceURI)

References System.Xml.XmlNode.Attributes, System.Xml.Dictionary, System.Xml.XmlNode.FirstChild, System.Xml.DataSetMapper.GetColumnSchemaForNode(), and System.Xml.DataSetMapper.SearchMatchingTableSchema().