Xml/html close tags problem

Hi

I have an agent with some basic print statements which puts some tags around a notes field so that an xml doc is produced and shown on screen. This all works perfectly. However one of my fields contains some HTML. Normally this works absolutely fine too. However when the html has tags that arent close (eg BR) then the xml sheet is not produced at all and it errors. Once you change it to
or add proper close tags it works fine.

Is there any way to get round this problem apart from manually checking the HTML to make sure that it has close tags. Someone has suggested using CDATA but I am not entirely sure how to use this.

Thanks in advance.

Sarah

Subject: xml/html close tags problem

cdata is the way to go - before your content place (without quotes)>

“<![CDATA[”

after content>

“]]>”

steve.castledine@projectdx.org

Subject: RE: xml/html close tags problem

Thank you steve. I tried the following:-

Print “<”+Lcase(entity)+“></”+Lcase(entity)+“>”

but I get an error message:-

“An opening ‘[’ character was expected”

Any ideas what is wrong?

Thanks

Sarah

Subject: I fixed it…

You need a couple of extra square brackets

Print “<”+Lcase(entity)+“></”+Lcase(entity)+“>”

And it works fine. thanks for your help.

Subject: RE: I fixed it…

Just an FYI it should be

Print “<”+Lcase(entity)+“></”+Lcase(entity)+“>”

you just need the double bracket at the front ie not sure why domino crops it.