Compressed XML in DOM
Hi,
I am looking to compress a particular node in an XML. Other parts of the XML need to be unaltered and I am getting all the XML within the node in a string, using zlib to compress the string, and adding the compressed string to the node again. But when I try to load this compressed XML in to the DOM again it complains about invalid characters in input. Has someone ever done this or is there a proper solution to this? Thanks in advance.
Sam.
|