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

◆ XmlSpace

override XmlSpace System.Xml.XPath.XPathNavigatorReader.XmlSpace
get

Definition at line 166 of file XPathNavigatorReader.cs.

167 {
168 get
169 {
170 XPathNavigator xPathNavigator = _nav.Clone();
171 do
172 {
173 if (xPathNavigator.MoveToAttribute("space", "http://www.w3.org/XML/1998/namespace"))
174 {
175 string text = XmlConvert.TrimString(xPathNavigator.Value);
176 if (text == "default")
177 {
178 return XmlSpace.Default;
179 }
180 if (text == "preserve")
181 {
182 return XmlSpace.Preserve;
183 }
184 xPathNavigator.MoveToParent();
185 }
186 }
187 while (xPathNavigator.MoveToParent());
188 return XmlSpace.None;
189 }
190 }