internal static void ParseXmlDeclarationValue(string strValue, out string version, out string encoding, out string standalone) { version = null; encoding = null; standalone = null; XmlTextReaderImpl impl = new XmlTextReaderImpl(strValue, null); try { impl.Read(); if (impl.MoveToAttribute("version")) { version = impl.Value; } if (impl.MoveToAttribute("encoding")) { encoding = impl.Value; } if (impl.MoveToAttribute("standalone")) { standalone = impl.Value; } } finally { impl.Close(); } }
#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(nameof(version))) { version = tempreader.Value; } //get encoding info if (tempreader.MoveToAttribute(nameof(encoding))) { encoding = tempreader.Value; } //get standalone info if (tempreader.MoveToAttribute(nameof(standalone))) { standalone = tempreader.Value; } } finally { tempreader.Close(); } }
internal void Close(bool closeStream) { coreReaderImpl.Close(closeStream); parsingFunction = ParsingFunction.ReaderClosed; }
// // Input documents management // internal static XPathDocument LoadDocument(XmlTextReaderImpl reader) { reader.EntityHandling = EntityHandling.ExpandEntities; reader.XmlValidatingReaderCompatibilityMode = true; try { return new XPathDocument(reader, XmlSpace.Preserve); } finally { reader.Close(); } }
public override void Close() { _impl.Close(); }
#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(nameof(version))) version = tempreader.Value; //get encoding info if (tempreader.MoveToAttribute(nameof(encoding))) encoding = tempreader.Value; //get standalone info if (tempreader.MoveToAttribute(nameof(standalone))) standalone = tempreader.Value; } finally { tempreader.Close(); } }