Me n My Programming

If Only I Have TIme

XmlException: Root element is missing

I got this error while opening my xml file. Most of the website stated that the xml file is missing a root. Going back and check my xml file, I notice there is a root element. Root is not the problem here. I played around with the code a few times and notice that I was trying to open the same file twice. After I remove the first open instruction, everything was fine. So I conclude that we can’t open the xml file twice or an xmlException will be fired. Tq


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


This entry was posted on August 5, 2008 by in C#.
%d bloggers like this: