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

◆ IsEmptyXml()

bool System.Data.DataTable.IsEmptyXml ( XmlReader reader)
inlineprivateinherited

Definition at line 5054 of file DataTable.cs.

5055 {
5056 if (reader.IsEmptyElement)
5057 {
5058 if (reader.AttributeCount == 0 || (reader.LocalName == "diffgram" && reader.NamespaceURI == "urn:schemas-microsoft-com:xml-diffgram-v1"))
5059 {
5060 return true;
5061 }
5062 if (reader.AttributeCount == 1)
5063 {
5064 reader.MoveToAttribute(0);
5065 if (Namespace == reader.Value && Prefix == reader.LocalName && reader.Prefix == "xmlns" && reader.NamespaceURI == "http://www.w3.org/2000/xmlns/")
5066 {
5067 return true;
5068 }
5069 }
5070 }
5071 return false;
5072 }
bool MoveToAttribute(string name)

References System.Xml.XmlReader.AttributeCount, System.Xml.XmlReader.IsEmptyElement, System.Xml.XmlReader.LocalName, System.Xml.XmlReader.MoveToAttribute(), System.Data.DataTable.Namespace, System.Xml.XmlReader.NamespaceURI, System.Data.DataTable.Prefix, System.Xml.XmlReader.Prefix, and System.Xml.XmlReader.Value.

Referenced by System.Data.DataTable.ReadXml(), and System.Data.DataTable.ReadXml().