This is a migrated thread and some comments may be shown as answers.

Getting XML exception when binding to radtabstrip

1 Answer 80 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
subrahmanyam kameswara
Top achievements
Rank 1
subrahmanyam kameswara asked on 22 Apr 2010, 01:01 PM
Hi,

When I am binding the xml file to the radtabstrip I am getting the "Data at the root level is invalid. Line 1, position 1. " I am pasting my xml file here,

<?xml version="1.0" encoding="utf-8" ?>
<MainMenu>
  <Menu Text="Home" Url="#">
    <Menu Text="test1"></Menu>
    <Menu Text="test3"></Menu>
    <Menu Text="test2"></Menu>
  </Menu>
  <Menu Text="Policy Management" url="#">   
  </Menu>
  <Menu Text="Claims Management" Url="#">   
  </Menu>
  <Menu Text="Fast Quote" Url="#"> 
  </Menu>
  <Menu Text="Batch Processes" Url="#">   
  </Menu>
</MainMenu>

and in cs file in page load i am using this code

 MainMenu.LoadXml("XMLFile.xml") and I used this also

MainMenu.LoadContentFile("XMLFile.xml");

plz help me soon.











1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 22 Apr 2010, 01:13 PM
Hi subrahmanyam,

You should use the same structure that is described here in order to load tabs from xml file.

Greetings,
Yana
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
TabStrip
Asked by
subrahmanyam kameswara
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or