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

◆ WriteDoctype()

void System.Xml.Xsl.XsltOld.SequentialOutput.WriteDoctype ( BuilderInfo mainNode)
inlineprivateinherited

Definition at line 174 of file SequentialOutput.cs.

175 {
176 Indent(0);
177 Write("<!DOCTYPE ");
178 if (_isXmlOutput)
179 {
180 WriteName(mainNode.Prefix, mainNode.LocalName);
181 }
182 else
183 {
184 WriteName(string.Empty, "html");
185 }
186 Write(' ');
187 if (_output.DoctypePublic != null)
188 {
189 Write("PUBLIC ");
190 Write('"');
192 Write("\" ");
193 }
194 else
195 {
196 Write("SYSTEM ");
197 }
198 if (_output.DoctypeSystem != null)
199 {
200 Write('"');
202 Write('"');
203 }
204 Write('>');
205 }
void WriteName(string prefix, string name)

References System.Xml.Xsl.XsltOld.SequentialOutput._isXmlOutput, System.Xml.Xsl.XsltOld.SequentialOutput._output, System.Xml.Dictionary, System.Xml.Xsl.XsltOld.XsltOutput.DoctypePublic, System.Xml.Xsl.XsltOld.XsltOutput.DoctypeSystem, System.Xml.Xsl.XsltOld.SequentialOutput.Indent(), System.Xml.Xsl.XsltOld.SequentialOutput.Write(), and System.Xml.Xsl.XsltOld.SequentialOutput.WriteName().

Referenced by System.Xml.Xsl.XsltOld.SequentialOutput.WriteStartElement().