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

◆ ReadInnerXml()

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

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

Definition at line 958 of file XmlReader.cs.

959 {
960 if (ReadState != ReadState.Interactive)
961 {
962 return string.Empty;
963 }
964 if (NodeType != XmlNodeType.Attribute && NodeType != XmlNodeType.Element)
965 {
966 Read();
967 return string.Empty;
968 }
971 try
972 {
973 if (NodeType == XmlNodeType.Attribute)
974 {
975 ((XmlTextWriter)xmlWriter).QuoteChar = QuoteChar;
977 }
978 if (NodeType == XmlNodeType.Element)
979 {
981 }
982 }
983 finally
984 {
985 xmlWriter.Close();
986 }
987 return stringWriter.ToString();
988 }
static CultureInfo InvariantCulture
XmlWriter CreateWriterForInnerOuterXml(StringWriter sw)
virtual char QuoteChar
Definition XmlReader.cs:94
void WriteAttributeValue(XmlWriter xtw)
void WriteNode(XmlWriter xtw, bool defattr)
Definition XmlReader.cs:990
XmlNodeType NodeType
Definition XmlReader.cs:62

References System.Xml.XmlReader.CreateWriterForInnerOuterXml(), System.Xml.Dictionary, System.Globalization.CultureInfo.InvariantCulture, System.Xml.XmlReader.NodeType, System.Xml.XmlReader.QuoteChar, System.Xml.XmlReader.Read(), System.Xml.XmlReader.WriteAttributeValue(), and System.Xml.XmlReader.WriteNode().

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