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

◆ ParseXmlDeclarationValue()

static void System.Xml.XmlLoader.ParseXmlDeclarationValue ( string strValue,
out string version,
out string encoding,
out string standalone )
inlinestaticpackage

Definition at line 813 of file XmlLoader.cs.

814 {
815 version = null;
816 encoding = null;
817 standalone = null;
818 XmlTextReaderImpl xmlTextReaderImpl = new XmlTextReaderImpl(strValue, (XmlParserContext)null);
819 try
820 {
821 xmlTextReaderImpl.Read();
822 if (xmlTextReaderImpl.MoveToAttribute("version"))
823 {
824 version = xmlTextReaderImpl.Value;
825 }
826 if (xmlTextReaderImpl.MoveToAttribute("encoding"))
827 {
828 encoding = xmlTextReaderImpl.Value;
829 }
830 if (xmlTextReaderImpl.MoveToAttribute("standalone"))
831 {
833 }
834 }
835 finally
836 {
837 xmlTextReaderImpl.Close();
838 }
839 }

Referenced by System.Xml.XmlLoader.LoadDeclarationNode(), and System.Xml.DocumentXmlWriter.WriteXmlDeclaration().