error transformhttp://forums.asp.net/t/279636.aspx/1?error+transformFri, 01 Aug 2003 17:27:20 -0400279636279636http://forums.asp.net/p/279636/279636.aspx/1?error+transformerror transform I've this code (ds is a dataset) -- objdoc = New XmlDocument() objdoc.LoadXml(ds.GetXml.ToString()) objxsl = New XslTransform() objxsl.Load(Server.MapPath("transformationtemplate.xslt")) writer = New StringWriter() objxsl.Transform(objdoc.CreateNavigator, Nothing, writer) TreeView1.TreeNodeSrc = writer.ToString() TreeView1.DataBind() writer.Close() -- i've take it here http://aspalliance.com/joteke/treeviewarticle/article.aspx it is for display hierarchical data with TreeView I've take the xslt file too. Now I've an error my asp.net page The literal string "1Apparato gastrointestinale e metabolismo361Antiacidi .... .................was found. Literal strings are not allowed within this control. If I display the writer, I don't see the structure of the xslt, but all the fields without structure. es. 1Apparato gastrointestinale e metabolismo361Antiacidi e antiulcera371Antispastici381Procinetici391Antiemetici e antinausea401 I think the correct structure is Apparato gastrointestinale e metabolismo361Antiacidi ecc.. Sorry for the english help me Thanks Sandro 2003-07-16T16:05:29-04:00279678http://forums.asp.net/p/279636/279678.aspx/1?Re+error+transformRe: error transform Do you use exactly same XSLT as I demonstrated in the article? Post the XSLT and XML you use. 2003-07-16T16:32:21-04:00279687http://forums.asp.net/p/279636/279687.aspx/1?Re+error+transformRe: error transform I've only modified the names of the dataset and fields S. 2003-07-16T16:37:23-04:00280562http://forums.asp.net/p/279636/280562.aspx/1?Re+error+transformRe: error transform Can you show the source xml as well (still easier to reproduce)? 2003-07-17T08:54:48-04:00281130http://forums.asp.net/p/279636/281130.aspx/1?Re+error+transformRe: error transform By the way, do you have other tables in the DataSet than these needed by the TreeView? 2003-07-17T17:50:32-04:00297521http://forums.asp.net/p/279636/297521.aspx/1?Re+error+transformRe: error transform thank you Joteke i read only now your replies I had an error in the xsl code now it is ok. your code is very good Sandro 2003-08-01T17:22:26-04:00