close

How to parse CData in Lotusscript

chatFrank van der Linden   22 April 2010 16:16:51
Today I was busy with parsing RSS XML to a website. For this purpose I made use of a Lotusscript agent.

The lotusscript function to fetch the XML
Image:How to parse CData in Lotusscript

The problem I encouter is a parsererror. When I tracked down the location of the error, it's caused by a CData
See below
Image:How to parse CData in Lotusscript

Does someone know a way to manipulate with lotusscript the XML, so I don't get any parsererrors anymore?

Comments

1Ranjit  23-4-2010 6:40:51  How to parse CData in Lotusscript

I have done this with Java, but not with LS. Feel free to drop me an email if you would like to have the Java code I used.

2Stephan H. Wissel  4-5-2010 9:44:15  How to parse CData in Lotusscript

I would second Ranjit. Use Ls2J and you become platform independent. The DOM Parser in Java is CDATA aware.