#pragma warning restore 618 internal static void ParseXmlDeclarationValue(string strValue, out string version, out string encoding, out string standalone) { version = null; encoding = null; standalone = null; XmlTextReaderImpl tempreader = new XmlTextReaderImpl(strValue, (XmlParserContext)null); try { tempreader.Read(); //get version info. if (tempreader.MoveToAttribute("version")) { version = tempreader.Value; } //get encoding info if (tempreader.MoveToAttribute("encoding")) { encoding = tempreader.Value; } //get standalone info if (tempreader.MoveToAttribute("standalone")) { standalone = tempreader.Value; } } finally { tempreader.Close(); } }
public override bool MoveToAttribute(string name) { return(_impl.MoveToAttribute(name)); }