Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

Data at the root level is invalid. Line 1, position 1.

string _byteOrderMarkUtf8 = Encoding.UTF8.GetString(Encoding.UTF8.GetPreamble());
if (xml.StartsWith(_byteOrderMarkUtf8))
{
    xml = xml.Remove(0, _byteOrderMarkUtf8.Length);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Data #root #level #Line #position
ADD COMMENT
Topic
Name
7+9 =