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

◆ QueryOutputWriterV1()

System.Xml.QueryOutputWriterV1.QueryOutputWriterV1 ( XmlWriter writer,
XmlWriterSettings settings )
inline

Definition at line 27 of file QueryOutputWriterV1.cs.

28 {
30 _systemId = settings.DocTypeSystem;
31 _publicId = settings.DocTypePublic;
32 if (settings.OutputMethod == XmlOutputMethod.Xml)
33 {
34 bool flag = false;
35 if (_systemId != null)
36 {
37 flag = true;
38 _outputDocType = true;
39 }
40 if (settings.Standalone == XmlStandalone.Yes)
41 {
42 flag = true;
43 }
44 if (flag)
45 {
46 if (settings.Standalone == XmlStandalone.Yes)
47 {
49 }
50 else
51 {
53 }
54 }
55 if (settings.CDataSectionElements == null || settings.CDataSectionElements.Count <= 0)
56 {
57 return;
58 }
59 _bitsCData = new BitStack();
61 _qnameCData = new XmlQualifiedName();
62 foreach (XmlQualifiedName cDataSectionElement in settings.CDataSectionElements)
63 {
65 }
67 }
68 else if (settings.OutputMethod == XmlOutputMethod.Html && (_systemId != null || _publicId != null))
69 {
70 _outputDocType = true;
71 }
72 }
void PushBit(bool bit)
Definition BitStack.cs:16
readonly Dictionary< XmlQualifiedName, XmlQualifiedName > _lookupCDataElems
readonly XmlQualifiedName _qnameCData

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.Xml.XmlWriterSettings.CDataSectionElements, System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Xml.Dictionary, System.Xml.XmlWriterSettings.DocTypePublic, System.Xml.XmlWriterSettings.DocTypeSystem, System.Xml.XmlWriterSettings.OutputMethod, System.Xml.BitStack.PushBit(), System.Xml.XmlWriterSettings.Standalone, System.writer, and System.Xml.XmlWriter.WriteStartDocument().