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.