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

◆ CreateXmlNsAttribute()

XmlAttribute System.Xml.Schema.Parser.CreateXmlNsAttribute ( string prefix,
string value )
inlineprivate

Definition at line 362 of file Parser.cs.

363 {
364 XmlAttribute xmlAttribute = ((prefix.Length != 0) ? _dummyDocument.CreateAttribute(_xmlns, prefix, "http://www.w3.org/2000/xmlns/") : _dummyDocument.CreateAttribute(string.Empty, _xmlns, "http://www.w3.org/2000/xmlns/"));
367 return xmlAttribute;
368 }
readonly XmlDocument _dummyDocument
Definition Parser.cs:36
XmlNamespaceManager _annotationNSManager
Definition Parser.cs:42
virtual XmlText CreateTextNode(string? text)
XmlAttribute CreateAttribute(string name)
virtual void AddNamespace(string prefix, string uri)

References System.Xml.Schema.Parser._annotationNSManager, System.Xml.Schema.Parser._dummyDocument, System.Xml.Schema.Parser._xmlns, System.Xml.XmlNamespaceManager.AddNamespace(), System.Xml.XmlAttribute.AppendChild(), System.Xml.XmlDocument.CreateAttribute(), System.Xml.XmlDocument.CreateTextNode(), System.Xml.Dictionary, System.prefix, and System.value.

Referenced by System.Xml.Schema.Parser.LoadElementNode().