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

◆ WriteStartElement() [3/4]

override void System.Xml.XmlAutoDetectWriter.WriteStartElement ( string prefix,
string localName,
string ns )
inline

Definition at line 73 of file XmlAutoDetectWriter.cs.

74 {
75 if (_wrapped == null)
76 {
77 if (ns.Length == 0 && IsHtmlTag(localName))
78 {
79 CreateWrappedWriter(XmlOutputMethod.Html);
80 }
81 else
82 {
83 CreateWrappedWriter(XmlOutputMethod.Xml);
84 }
85 }
86 _wrapped.WriteStartElement(prefix, localName, ns);
87 }
void CreateWrappedWriter(XmlOutputMethod outMethod)
static bool IsHtmlTag(string tagName)
void WriteStartElement(string localName, string? ns)
Definition XmlWriter.cs:30

References System.Xml.XmlAutoDetectWriter._wrapped, System.Xml.XmlAutoDetectWriter.CreateWrappedWriter(), System.Xml.XmlAutoDetectWriter.IsHtmlTag(), System.prefix, and System.Xml.XmlWriter.WriteStartElement().