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

◆ GetNamespace() [2/2]

string System.Xml.XPathNodePointer.GetNamespace ( XmlBoundElement be,
string name )
inlineprivate

Definition at line 1213 of file XPathNodePointer.cs.

1214 {
1215 if (be == null)
1216 {
1217 return null;
1218 }
1219 XmlAttribute xmlAttribute = null;
1220 if (be.IsFoliated)
1221 {
1222 return be.GetAttributeNode(name, "http://www.w3.org/2000/xmlns/")?.Value;
1223 }
1224 DataRow row = be.Row;
1225 if (row == null)
1226 {
1227 return null;
1228 }
1230 {
1231 if (dataColumn.Namespace == "http://www.w3.org/2000/xmlns/")
1232 {
1233 DataRowVersion version = ((row.RowState == DataRowState.Detached) ? DataRowVersion.Proposed : DataRowVersion.Current);
1234 return dataColumn.ConvertObjectToXml(row[dataColumn, version]);
1235 }
1236 }
1237 return null;
1238 }
DataColumn PreviousColumn(DataRow row, DataColumn col, bool fAttribute)

References System.Xml.XmlElement.GetAttributeNode(), System.Xml.XmlBoundElement.IsFoliated, System.Xml.XmlBoundElement.Row, and System.Xml.XmlAttribute.Value.

Referenced by System.Xml.DataDocumentXPathNavigator.GetNamespace().