#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();
}
}