Quantcast
Channel: XML, System.Xml, MSXML and XmlLite forum
Viewing all articles
Browse latest Browse all 935

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

$
0
0

I am getting below error, it might be simple ,but it killing my time ,can anyone have a idea to resolve the same.

Error Details:

An unhandled exception of type 'System.Xml.XmlException' occurred in System.Xml.dll

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

My Code:

XmlDocument doc = new XmlDocument();
 doc.LoadXml("??<\0n\0s\00\0:\0C\0u\0s\0t\0D\0e\0t\0a\0i\0l\0s\0 \0x\0m\0l\0n\0s\0:\0n\0s\00\0=\0\"\0h\0t\0t\0p\0:\0/\0/\0B\0i\0z\0T\0a\0l\0k\0.\0I\0n\0B\0o\0u\0n\0d\0\"\0>\0\r\0\n\0 \0 \0<\0C\0u\0s\0t\0>\0\r\0\n\0 \0 \0 \0 \0<\0C\0u\0s\0t\0N\0o\0>\01\0<\0/\0C\0u\0s\0t\0N\0o\0>\0\r\0\n\0 \0 \0 \0 \0<\0C\0u\0s\0t\0F\0i\0r\0s\0t\0N\0a\0m\0e\0>\0C\0u\0s\0t\0F\0i\0r\0s\0t\0N\0a\0m\0e\0_\00\0<\0/\0C\0u\0s\0t\0F\0i\0r\0s\0t\0N\0a\0m\0e\0>\0\r\0\n\0 \0 \0 \0 \0<\0C\0u\0s\0t\0L\0a\0s\0t\0N\0a\0m\0e\0>\0C\0u\0s\0t\0L\0a\0s\0t\0N\0a\0m\0e\0_\00\0<\0/\0C\0u\0s\0t\0L\0a\0s\0t\0N\0a\0m\0e\0>\0\r\0\n\0 \0 \0 \0 \0<\0S\0a\0l\0>\0S\0a\0l\0_\00\0<\0/\0S\0a\0l\0>\0\r\0\n\0 \0 \0<\0/\0C\0u\0s\0t\0>\0\r\0\n\0<\0C\0u\0s\0t\0>\0\r\0\n\0 \0 \0 \0 \0<\0C\0u\0s\0t\0N\0o\0>\02\0<\0/\0C\0u\0s\0t\0N\0o\0>\0\r\0\n\0 \0 \0 \0 \0<\0C\0u\0s\0t\0F\0i\0r\0s\0t\0N\0a\0m\0e\0>\0C\0u\0s\0t\0F\0i\0r\0s\0t\0N\0a\0m\0e\0_\00\0<\0/\0C\0u\0s\0t\0F\0i\0r\0s\0t\0N\0a\0m\0e\0>\0\r\0\n\0 \0 \0 \0 \0<\0C\0u\0s\0t\0L\0a\0s\0t\0N\0a\0m\0e\0>\0C\0u\0s\0t\0L\0a\0s\0t\0N\0a\0m\0e\0_\00\0<\0/\0C\0u\0s\0t\0L\0a\0s\0t\0N\0a\0m\0e\0>\0\r\0\n\0 \0 \0 \0 \0<\0S\0a\0l\0>\0S\0a\0l\0_\00\0<\0/\0S\0a\0l\0>\0\r\0\n\0 \0 \0<\0/\0C\0u\0s\0t\0>\0\r\0\n\0<\0C\0u\0s\0t\0>\0\r\0\n\0 \0 \0 \0 \0<\0C\0u\0s\0t\0N\0o\0>\03\0<\0/\0C\0u\0s\0t\0N\0o\0>\0\r\0\n\0 \0 \0 \0 \0<\0C\0u\0s\0t\0F\0i\0r\0s\0t\0N\0a\0m\0e\0>\0C\0u\0s\0t\0F\0i\0r\0s\0t\0N\0a\0m\0e\0_\00\0<\0/\0C\0u\0s\0t\0F\0i\0r\0s\0t\0N\0a\0m\0e\0>\0\r\0\n\0 \0 \0 \0 \0<\0C\0u\0s\0t\0L\0a\0s\0t\0N\0a\0m\0e\0>\0C\0u\0s\0t\0L\0a\0s\0t\0N\0a\0m\0e\0_\00\0<\0/\0C\0u\0s\0t\0L\0a\0s\0t\0N\0a\0m\0e\0>\0\r\0\n\0 \0 \0 \0 \0<\0S\0a\0l\0>\0S\0a\0l\0_\00\0<\0/\0S\0a\0l\0>\0\r\0\n\0 \0 \0<\0/\0C\0u\0s\0t\0>\0\r\0\n\0<\0/\0n\0s\00\0:\0C\0u\0s\0t\0D\0e\0t\0a\0i\0l\0s\0>\0");

Regards


Viewing all articles
Browse latest Browse all 935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>