TreevIew Menu Problem binding with XML

N

naija naija

I have a treeview binded with a XML file and it was working.
Later is stopped and SINCE then refused to work.
I have TRIED EVERYTHING BUT STILL NOT WORKING!!
Error:-
System.Xml.XmlException: The data at the root level is invalid. Line 1,
position 1.

But if i paste:-
<IEWC:TREENODE Text="Business Units"></IEWC:TREENODE>
Directly without binding it with XML it works fine.!
Can somebody really explain how this works!!

CODE BELOW:-



.aspx file
-----------
<IEWC:TREEVIEW id="TreeView1" runat="server"
AutoSelect="True" SelectExpands="True">
<IEWC:TREENODE TreeNodeSrc="IEWC.xml"
Text="DEMO TREE" Expanded="True">
</IEWC:TREENODE>
</IEWC:TREEVIEW >

.xml file(IEWC.xml)
-----------
<?xml version="1.0" encoding="utf-8" ?>
<TREENODE>
<TreeNode Text="Production">
<TreeNode Text="Solution Architect">
<TreeNode Text="Project Manager">
<TreeNode Text="Project Leader">
<TreeNode Text="Programmer"/>
<TreeNode Text="Designer"/>
</TreeNode>
</TreeNode>
</TreeNode>
</TreeNode>
<TreeNode Text="Marketing & Sales">
<TreeNode Text="Business Development Manager">
<TreeNode Text="Area Manager">
<TreeNode Text="Area Sales Manager">
<TreeNode Text="Sales Man"/>
<TreeNode Text="Sales Women"/>
</TreeNode>
</TreeNode>
</TreeNode>
</TreeNode>
</TREENODE>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top