Hi forks,
I am wondering how to handle a escape characters in
LzDatapointer.xpathQuery().
This is a example code.
<canvas debug="true">
<dataset name="ds">
<data><ABCD></data>
</dataset>
<handler name="oninit">
var dp = new LzDatapointer();
dp.setPointer(ds);
Debug.write( "dp serialize : " + dp.serialize() );
Debug.write( "dp xpathQuery: " + dp.xpathQuery("data/text()") );
</handler>
</canvas>
You can see the data with escaped in <dataset> tag.
And the first debug line ( using serialize() ) shows the strings without
modification,
but the second debug line ( using xpathQuery() ) shows "<ABCD>" out of
the way by
operating unescaped.
I took a look around LzDatapointer.as or LzDataElement.as, but
xpathQuery() do not
translate from '>' to '<' anywhere.
Please let me know why xpathQuery() can do such like that ?
mt1