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

◆ QueryOutputWriter()

System.Xml.QueryOutputWriter.QueryOutputWriter ( XmlRawWriter writer,
XmlWriterSettings settings )
inline

Definition at line 55 of file QueryOutputWriter.cs.

56 {
58 _systemId = settings.DocTypeSystem;
59 _publicId = settings.DocTypePublic;
60 if (settings.OutputMethod == XmlOutputMethod.Xml)
61 {
62 if (_systemId != null)
63 {
64 _outputDocType = true;
66 }
67 if (settings.AutoXmlDeclaration && settings.Standalone == XmlStandalone.Yes)
68 {
70 }
71 if (settings.CDataSectionElements.Count <= 0)
72 {
73 return;
74 }
75 _bitsCData = new BitStack();
77 _qnameCData = new XmlQualifiedName();
78 foreach (XmlQualifiedName cDataSectionElement in settings.CDataSectionElements)
79 {
81 }
83 }
84 else if (settings.OutputMethod == XmlOutputMethod.Html && (_systemId != null || _publicId != null))
85 {
86 _outputDocType = true;
87 }
88 }
void PushBit(bool bit)
Definition BitStack.cs:16
readonly Dictionary< XmlQualifiedName, int > _lookupCDataElems
readonly XmlRawWriter _wrapped
readonly XmlQualifiedName _qnameCData

References System.Xml.QueryOutputWriter._bitsCData, System.Xml.QueryOutputWriter._checkWellFormedDoc, 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.Xml.XmlWriterSettings.AutoXmlDeclaration, 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, and System.writer.