xmlNodeToDocument Error

Hi All,

I am actually tring to convert an xmlNodeToDocument. The xml string has ‘&’ in one of the fields. ( eg: a & b).

So, when in run-time its giving error saying:[ISC.0042.9332] Malformed entity reference: & b

Please let me know how we can avoid this. I tried to see the built-in services guide but couldn’t find this.

Any help is much appreciated.

You can’t. Well, you could do a work-around but it’s not advisable.

It’s not well-formed XML. Whatever generates the XML needs to HTML encode the data within the tags. The & needs to be & when the XML is generated.

Any approach to “correct” it afterwards can be a fragile solution.