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

◆ WriteStartElement() [3/4]

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

Definition at line 97 of file QueryOutputWriterV1.cs.

98 {
100 if (_outputDocType)
101 {
102 WriteState writeState = _wrapped.WriteState;
103 if (writeState == WriteState.Start || writeState == WriteState.Prolog)
104 {
105 _wrapped.WriteDocType(string.IsNullOrEmpty(prefix) ? localName : (prefix + ":" + localName), _publicId, _systemId, null);
106 }
107 _outputDocType = false;
108 }
109 _wrapped.WriteStartElement(prefix, localName, ns);
110 if (_lookupCDataElems != null)
111 {
112 _qnameCData.Init(localName, ns);
114 }
115 }
void PushBit(bool bit)
Definition BitStack.cs:16
readonly Dictionary< XmlQualifiedName, XmlQualifiedName > _lookupCDataElems
readonly XmlQualifiedName _qnameCData
void Init(string name, string ns)
WriteState WriteState
Definition XmlWriter.cs:16
void WriteDocType(string name, string? pubid, string? sysid, string? subset)
void WriteStartElement(string localName, string? ns)
Definition XmlWriter.cs:30

References System.Xml.QueryOutputWriterV1._bitsCData, System.Xml.QueryOutputWriterV1._lookupCDataElems, System.Xml.QueryOutputWriterV1._outputDocType, System.Xml.QueryOutputWriterV1._publicId, System.Xml.QueryOutputWriterV1._qnameCData, System.Xml.QueryOutputWriterV1._systemId, System.Xml.QueryOutputWriterV1._wrapped, System.Collections.Generic.Dictionary< TKey, TValue >.ContainsKey(), System.Xml.QueryOutputWriterV1.EndCDataSection(), System.Xml.XmlQualifiedName.Init(), System.prefix, System.Xml.BitStack.PushBit(), System.Xml.XmlWriter.WriteDocType(), System.Xml.XmlWriter.WriteStartElement(), and System.Xml.XmlWriter.WriteState.