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.
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.