Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
XmlSignificantWhitespace.cs
Go to the documentation of this file.
2
3namespace System.Xml;
4
6{
8
10
11 public override XmlNodeType NodeType => XmlNodeType.SignificantWhitespace;
12
13 public override XmlNode? ParentNode
14 {
15 get
16 {
17 switch (parentNode.NodeType)
18 {
20 return base.ParentNode;
21 case XmlNodeType.Text:
22 case XmlNodeType.CDATA:
23 case XmlNodeType.Whitespace:
24 case XmlNodeType.SignificantWhitespace:
25 {
27 while (xmlNode.IsText)
28 {
30 }
31 return xmlNode;
32 }
33 default:
34 return parentNode;
35 }
36 }
37 }
38
39 public override string? Value
40 {
41 get
42 {
43 return Data;
44 }
45 set
46 {
47 if (CheckOnData(value))
48 {
49 Data = value;
50 return;
51 }
53 }
54 }
55
56 internal override XPathNodeType XPNodeType
57 {
58 get
59 {
60 XPathNodeType xnt = XPathNodeType.SignificantWhitespace;
62 return xnt;
63 }
64 }
65
66 internal override bool IsText => true;
67
68 public override XmlNode? PreviousText
69 {
70 get
71 {
72 if (parentNode != null && parentNode.IsText)
73 {
74 return parentNode;
75 }
76 return null;
77 }
78 }
79
80 protected internal XmlSignificantWhitespace(string? strData, XmlDocument doc)
81 : base(strData, doc)
82 {
83 if (!doc.IsLoading && !CheckOnData(strData))
84 {
86 }
87 }
88
89 public override XmlNode CloneNode(bool deep)
90 {
92 }
93
94 public override void WriteTo(XmlWriter w)
95 {
96 w.WriteString(Data);
97 }
98
99 public override void WriteContentTo(XmlWriter w)
100 {
101 }
102}
static string Xdom_WS_Char
Definition SR.cs:1296
Definition SR.cs:7
bool DecideXPNodeTypeForTextNodes(XmlNode node, ref XPathNodeType xnt)
string strSignificantWhitespaceName
virtual XmlSignificantWhitespace CreateSignificantWhitespace(string? text)
override? XmlNode ParentNode
XmlDocument Document
Definition XmlNode.cs:253
XmlNode parentNode
Definition XmlNode.cs:57
virtual ? XmlDocument OwnerDocument
Definition XmlNode.cs:109
virtual bool IsText
Definition XmlNode.cs:344
XmlNodeType NodeType
Definition XmlNode.cs:73
XmlSignificantWhitespace(string? strData, XmlDocument doc)