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

◆ SetOutput()

void System.Xml.XmlCanonicalWriter.SetOutput ( Stream stream,
bool includeComments,
string[] inclusivePrefixes )
inline

Definition at line 157 of file XmlCanonicalWriter.cs.

158 {
159 if (stream == null)
160 {
162 }
163 if (_writer == null)
164 {
166 }
168 if (_elementStream == null)
169 {
171 }
172 if (_elementWriter == null)
173 {
175 }
177 if (_xmlnsAttributes == null)
178 {
180 _xmlnsOffset = 0;
181 WriteXmlnsAttribute("xml", "http://www.w3.org/XML/1998/namespace");
182 WriteXmlnsAttribute("xmlns", "http://www.w3.org/2000/xmlns/");
183 WriteXmlnsAttribute(string.Empty, string.Empty);
185 for (int i = 0; i < 3; i++)
186 {
188 }
189 }
190 else
191 {
194 }
195 _depth = 0;
196 _inStartElement = false;
198 _inclusivePrefixes = null;
199 if (inclusivePrefixes == null)
200 {
201 return;
202 }
203 _inclusivePrefixes = new string[inclusivePrefixes.Length];
204 for (int j = 0; j < inclusivePrefixes.Length; j++)
205 {
206 if (inclusivePrefixes[j] == null)
207 {
209 }
211 }
212 }
static string InvalidInclusivePrefixListCollection
Definition SR.cs:704
Definition SR.cs:7
static readonly bool[] s_isEscapedAttributeChar
void WriteXmlnsAttribute(string prefix, string ns)
static readonly bool[] s_isEscapedElementChar
new void SetOutput(Stream stream, bool ownsStream, Encoding encoding)

References System.Xml.XmlCanonicalWriter._depth, System.Xml.XmlCanonicalWriter._elementStream, System.Xml.XmlCanonicalWriter._elementWriter, System.Xml.XmlCanonicalWriter._includeComments, System.Xml.XmlCanonicalWriter._inclusivePrefixes, System.Xml.XmlCanonicalWriter._inStartElement, System.Xml.XmlCanonicalWriter._writer, System.Xml.XmlCanonicalWriter._xmlnsAttributeCount, System.Xml.XmlCanonicalWriter._xmlnsAttributes, System.Xml.XmlCanonicalWriter._xmlnsOffset, System.Xml.XmlCanonicalWriter._xmlnsStartOffset, System.Xml.Dictionary, System.SR.InvalidInclusivePrefixListCollection, System.Xml.XmlCanonicalWriter.XmlnsAttribute.referred, System.Xml.XmlCanonicalWriter.s_isEscapedAttributeChar, System.Xml.XmlCanonicalWriter.s_isEscapedElementChar, System.Xml.XmlUTF8NodeWriter.SetOutput(), System.stream, System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(), System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(), and System.Xml.XmlCanonicalWriter.WriteXmlnsAttribute().

Referenced by System.Xml.XmlSigningNodeWriter.SetOutput().