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

◆ XmlSpace

virtual XmlSpace System.Xml.XmlNode.XmlSpace
getpackageinherited

Definition at line 294 of file XmlNode.cs.

295 {
296 get
297 {
298 XmlNode xmlNode = this;
299 XmlElement xmlElement = null;
300 do
301 {
302 if (xmlNode is XmlElement xmlElement2 && xmlElement2.HasAttribute("xml:space"))
303 {
304 string text = XmlConvert.TrimString(xmlElement2.GetAttribute("xml:space"));
305 if (text == "default")
306 {
307 return XmlSpace.Default;
308 }
309 if (text == "preserve")
310 {
311 return XmlSpace.Preserve;
312 }
313 }
314 xmlNode = xmlNode.ParentNode;
315 }
316 while (xmlNode != null);
317 return XmlSpace.None;
318 }
319 }