Hi<BR><BR> I was trying to build dynamic treeview Web control. I have already registered the web control.But i got an error when databind. My Code is as follows:<BR><BR> oTree.TreeNodeSrc = http://aspmessageboard.com/archive/index.php/"/devclientselearnairmauritiusaspsites.aspx"<BR> oTree.DataBind()<BR><BR><BR>The error message is as follows:<BR><BR>There is invalid data at the root level. Line 1, position 1. <BR>Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. <BR><BR>Exception Details: System.Xml.XmlException: There is invalid data at the root level. Line 1, position 1.<BR><BR>Source Error: <BR><BR>An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. <BR><BR>Stack Trace: <BR><BR> [XmlException: There is invalid data at the root level. Line 1, position 1.] System.Xml.XmlTextReader.ParseRoot() +295 System.Xml.XmlTextReader.Read() +127 Microsoft.Web.UI.WebControls.TreeView.ReadXmlSrc(S tring TreeNodeSrc, String TreeNodeXsltSrc, String strOuter) +134 Microsoft.Web.UI.WebControls.TreeView.ReadTreeNode XmlSrc() +80 Microsoft.Web.UI.WebControls.TreeView.OnInit(Event Args e) +91 System.Web.UI.Control.InitRecursive(Control namingContainer) +234 System.Web.UI.Control.InitRecursive(Control namingContainer) +178 System.Web.UI.Control.InitRecursive(Control namingContainer) +178 System.Web.UI.Page.ProcessRequestMain() +171 <BR> <BR> <BR><BR> Can you please help me.<BR>Thanks very much<BR>AaedaAaeda,<BR>post your xml file (or the output or "/devclientselearnairmauritiusaspsites.aspx"). it seems that's were the error is.<BR><BR>does it match up to the examples?John,<BR> <BR> I don't quite understand what you are suggesting. Can you please give me an example if you can.<BR><BR>Thanks very much for your help.