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

◆ ReadOuterXml()

virtual string System.Xml.XmlReader.ReadOuterXml ( )
inlinevirtualinherited

Reimplemented in System.Xml.XmlDictionaryReader.XmlWrappedReader, System.Xml.Xsl.XsltOld.ReaderOutput, and System.Xml.XmlAsyncCheckReader.

Definition at line 1057 of file XmlReader.cs.

1058 {
1059 if (ReadState != ReadState.Interactive)
1060 {
1061 return string.Empty;
1062 }
1063 if (NodeType != XmlNodeType.Attribute && NodeType != XmlNodeType.Element)
1064 {
1065 Read();
1066 return string.Empty;
1067 }
1070 try
1071 {
1072 if (NodeType == XmlNodeType.Attribute)
1073 {
1074 xmlWriter.WriteStartAttribute(Prefix, LocalName, NamespaceURI);
1076 xmlWriter.WriteEndAttribute();
1077 }
1078 else
1079 {
1080 xmlWriter.WriteNode(this, defattr: false);
1081 }
1082 }
1083 finally
1084 {
1085 xmlWriter.Close();
1086 }
1087 return stringWriter.ToString();
1088 }
static CultureInfo InvariantCulture
XmlWriter CreateWriterForInnerOuterXml(StringWriter sw)
void WriteAttributeValue(XmlWriter xtw)
XmlNodeType NodeType
Definition XmlReader.cs:62

References System.Xml.XmlReader.CreateWriterForInnerOuterXml(), System.Xml.Dictionary, System.Globalization.CultureInfo.InvariantCulture, System.Xml.XmlReader.LocalName, System.Xml.XmlReader.NamespaceURI, System.Xml.XmlReader.NodeType, System.Xml.XmlReader.Prefix, System.Xml.XmlReader.Read(), and System.Xml.XmlReader.WriteAttributeValue().

Referenced by System.Xml.XmlDictionaryReader.XmlWrappedReader.ReadOuterXml(), and System.Xml.XmlAsyncCheckReader.ReadOuterXml().