XML headaches
Martin Blackman
martinblackman at gmail.com
Sat Jul 7 00:07:26 EDT 2007
According to a handy little book I own, 'XML - in easy steps', > is
the standard way to represent '>' in node contents, so it should work.
But it also mentions that you can use the unicode character code
'&#nnn;' for non standard characters.
I tried a simplified test here on Windows and > worked fine
on mouseUp
put "<node>2>1</node>" into tvar
put revCreateXMLTree(tVar, false, true, false) into tTree
put revXMLrootnode(tTree) into tNode
put revXMLNodeContents(tTree, tNode) into tContents
answer tContents
end mouseUp
I also tried adding this line after the first line and it made no
difference to the outcome:
put unidecode(uniencode(tvar,"UTF8"),"ANSII") into tVar
I also tried it successfully using <node>2>1</node>
regards
Martin Blackman
More information about the use-livecode
mailing list