XML Character escaping
It seems the XML.table object cannot handle the '<' character.
Using this 'escaped' XML string cause the columns to get mixed up
<APP_PKEY>H"1 X<VH !</APP_PKEY>
Sending the same <Row> node twice in the same input XML string causes the whole grid to flash!
It seems to escape other reserved XML characters but not '<'
The actual pattern it cannot handle inside the Text Node is '<[alpha char]'
'<1' is OK - '<V' is not
Try using :
<APP_PKEY><![CDATA[ ... any test you want in here ... ]]></APP_PKEY>
Sorry : Any TEXT you want between <![CDATA[ and ]]>
That works - just added a bit of code in my servlet to surround those characters
When I use:
<Company Name><![CDATA[<Microsoft]]></Company Name> - it doesn't work
I have to escape the "<" character and wrap it in a CDATA to get it to work:
<Company Name><![CDATA[<Microsoft]]></Company Name>
I've tried this in the examples. I don't want to parse every data string and escape special characters. Anybody know what's going on or how to solve this?
Thanks for the response Jim.
I guess I didn't understand CDATA. I thought that was being used in a way to avoid having to escape characters manually.
I was hoping I could just wrap CDATA around all my data fields and not worry about looking for special characters.
On another note, how can you possibly handle every special character? A lot of "if" blocks?
This topic is archived.
Back to support forum