Standard Posted by Manikandan Subbu Posted on July 2, 2013 Posted under Errors and Solutions Comments Leave a comment Data at the root level is invalid Error Solution Language : C# Name: “Data at the root level is invalid. Line 1, position 1” Used Code : doc.LoadXML(“”); Solution: Try loading the xml file using doc.Load(“”); Advertisements Share this:TwitterFacebookLike this:Like Loading... Related C#ErrorsSolutionXML Post navigation ← Creating a Log File Type or Namespace not found. Are you missing the assembly reference ? – Solution → Leave a Reply Cancel reply Enter your comment here... Fill in your details below or click an icon to log in: Email (required) (Address never made public) Name (required) Website You are commenting using your WordPress.com account. ( Log Out / Change ) You are commenting using your Twitter account. ( Log Out / Change ) You are commenting using your Facebook account. ( Log Out / Change ) You are commenting using your Google+ account. ( Log Out / Change ) Cancel Connecting to %s Notify me of new comments via email.