Starr Duskk
asked on
XML Root Element is missing
I am looking at this tutorial:
http://www.codeproject.com/KB/aspnet/xmlguestbook.aspx
I get this error:
Exception Details: System.Xml.XmlException: Root element is missing.
Line 62: Sub PopulateDataSet()
Line 63: myDataSet = New DataSet()
Line 64: myDataSet.ReadXml(strFileP ath, XmlReadMode.ReadSchema)
Line 65: End Sub
Source: \Guestbook\Guestbook.aspx. vb Line: 64
The guestbook.xml file only has this in it right now:
<?xml version="1.0" encoding="utf-8" ?>
What do I need?
Thanks.
http://www.codeproject.com/KB/aspnet/xmlguestbook.aspx
I get this error:
Exception Details: System.Xml.XmlException: Root element is missing.
Line 62: Sub PopulateDataSet()
Line 63: myDataSet = New DataSet()
Line 64: myDataSet.ReadXml(strFileP
Line 65: End Sub
Source: \Guestbook\Guestbook.aspx.
The guestbook.xml file only has this in it right now:
<?xml version="1.0" encoding="utf-8" ?>
What do I need?
Thanks.
Please post your xml and we have a look at it.
ASKER
Here is my previous post on this that shows the xml schema.
http://www.experts-exchang e.com/Web_ Developmen t/Web_Lang uages-Stan dards/XML/ Q_24137764 .html?cid= 239#a23721 301
http://www.experts-exchang
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I gave up on this so will close it out.
thanks.
thanks.
add at least the basic of you xml
like
<a></a>
or something which can be loaded and treated as xml