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

◆ XmlSpace

override XmlSpace System.Xml.Linq.XNodeReader.XmlSpace
get

Definition at line 275 of file XNodeReader.cs.

276 {
277 get
278 {
279 if (!IsInteractive)
280 {
281 return XmlSpace.None;
282 }
283 XElement xElement = GetElementInScope();
284 if (xElement != null)
285 {
286 XName name = XNamespace.Xml.GetName("space");
287 do
288 {
289 XAttribute xAttribute = xElement.Attribute(name);
290 if (xAttribute != null)
291 {
292 string text = xAttribute.Value.Trim(s_WhitespaceChars);
293 if (text == "preserve")
294 {
295 return XmlSpace.Preserve;
296 }
297 if (text == "default")
298 {
299 return XmlSpace.Default;
300 }
301 }
302 xElement = xElement.parent as XElement;
303 }
304 while (xElement != null);
305 }
306 return XmlSpace.None;
307 }
308 }
static readonly char[] s_WhitespaceChars
Definition XNodeReader.cs:5