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

◆ WriteStartElement() [3/4]

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

Definition at line 108 of file QueryOutputWriter.cs.

109 {
112 {
113 if (_depth == 0 && _hasDocElem)
114 {
115 throw new XmlException(System.SR.Xml_NoMultipleRoots, string.Empty);
116 }
117 _depth++;
118 _hasDocElem = true;
119 }
120 if (_outputDocType)
121 {
122 _wrapped.WriteDocType(string.IsNullOrEmpty(prefix) ? localName : (prefix + ":" + localName), _publicId, _systemId, null);
123 _outputDocType = false;
124 }
125 _wrapped.WriteStartElement(prefix, localName, ns);
126 if (_lookupCDataElems != null)
127 {
128 _qnameCData.Init(localName, ns);
130 }
131 }
static string Xml_NoMultipleRoots
Definition SR.cs:362
Definition SR.cs:7
void PushBit(bool bit)
Definition BitStack.cs:16
readonly Dictionary< XmlQualifiedName, int > _lookupCDataElems
readonly XmlRawWriter _wrapped
readonly XmlQualifiedName _qnameCData
void Init(string name, string ns)
override void WriteDocType(string name, string pubid, string sysid, string subset)
void WriteStartElement(string localName, string? ns)
Definition XmlWriter.cs:30

References System.Xml.QueryOutputWriter._bitsCData, System.Xml.QueryOutputWriter._checkWellFormedDoc, System.Xml.QueryOutputWriter._depth, System.Xml.QueryOutputWriter._hasDocElem, System.Xml.QueryOutputWriter._lookupCDataElems, System.Xml.QueryOutputWriter._outputDocType, System.Xml.QueryOutputWriter._publicId, System.Xml.QueryOutputWriter._qnameCData, System.Xml.QueryOutputWriter._systemId, System.Xml.QueryOutputWriter._wrapped, System.Collections.Generic.Dictionary< TKey, TValue >.ContainsKey(), System.Xml.QueryOutputWriter.EndCDataSection(), System.Xml.XmlQualifiedName.Init(), System.prefix, System.Xml.BitStack.PushBit(), System.Xml.XmlRawWriter.WriteDocType(), System.Xml.XmlWriter.WriteStartElement(), System.SR.Xml_NoMultipleRoots, and System.Xml.XmlException.