treeview XML structure

C

Colin \(615498\)

I'm tranforming an XML document and am having trouble with the text
attribute. A TreeView control will happly accept this XML:

<TreeNode>AAA</TreeNode>

and this:

<TreeNode text="AAA"></TreeNode>

but it will not accept this:

<TreeNode text="<div>AAA</div>"></TreeNode>

The browser reports 'Parser Error Message: Invalid child with tagname "div"'

If I programatically set the text attribute of a node to "<div>AAA</div>" it
works, but passing it in XML fails. I'm guessing the DIV is being directly
interpreted as an element of the treenode. How can I pass formatted text in
XML?

Thanks,
Colin.
 

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,776
Messages
2,569,602
Members
45,185
Latest member
GluceaReviews

Latest Threads

Top