Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
XmlDOMTextWriter.cs
Go to the documentation of this file.
1using System.IO;
2using System.Text;
3
4namespace System.Xml;
5
6internal sealed class XmlDOMTextWriter : XmlTextWriter
7{
8 public XmlDOMTextWriter(Stream w, Encoding encoding)
9 : base(w, encoding)
10 {
11 }
12
13 public XmlDOMTextWriter(string filename, Encoding encoding)
14 : base(filename, encoding)
15 {
16 }
17
19 : base(w)
20 {
21 }
22
23 public override void WriteStartElement(string prefix, string localName, string ns)
24 {
25 if (string.IsNullOrEmpty(ns) && !string.IsNullOrEmpty(prefix))
26 {
27 prefix = string.Empty;
28 }
29 base.WriteStartElement(prefix, localName, ns);
30 }
31
32 public override void WriteStartAttribute(string prefix, string localName, string ns)
33 {
34 if (string.IsNullOrEmpty(ns) && !string.IsNullOrEmpty(prefix))
35 {
36 prefix = string.Empty;
37 }
38 base.WriteStartAttribute(prefix, localName, ns);
39 }
40}
XmlDOMTextWriter(Stream w, Encoding encoding)
override void WriteStartElement(string prefix, string localName, string ns)
XmlDOMTextWriter(string filename, Encoding encoding)
override void WriteStartAttribute(string prefix, string localName, string ns)