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

◆ OuterXml

virtual string System.Xml.XPath.XPathNavigator.OuterXml
getsetinherited

Definition at line 451 of file XPathNavigator.cs.

452 {
453 get
454 {
455 if (NodeType == XPathNodeType.Attribute)
456 {
457 return Name + "=\"" + Value + "\"";
458 }
459 if (NodeType == XPathNodeType.Namespace)
460 {
461 if (LocalName.Length == 0)
462 {
463 return "xmlns=\"" + Value + "\"";
464 }
465 return "xmlns:" + LocalName + "=\"" + Value + "\"";
466 }
468 XmlWriterSettings xmlWriterSettings = new XmlWriterSettings();
471 xmlWriterSettings.ConformanceLevel = ConformanceLevel.Auto;
472 XmlWriter xmlWriter = XmlWriter.Create(stringWriter, xmlWriterSettings);
473 try
474 {
475 xmlWriter.WriteNode(this, defattr: true);
476 }
477 finally
478 {
479 xmlWriter.Close();
480 }
481 return stringWriter.ToString();
482 }
483 set
484 {
486 }
487 }
static CultureInfo InvariantCulture
virtual void ReplaceSelf(string newNode)