Getting XML exception when binding to radtabstrip

2 posts, 0 answers
  1. subrahmanyam kameswara
    subrahmanyam kameswara avatar
    12 posts
    Member since:
    Jan 2010

    Posted 22 Apr 2010 Link to this post

    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.











  2. Yana
    Admin
    Yana avatar
    5043 posts

    Posted 22 Apr 2010 Link to this post

    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.
Back to Top