> Someone  recomended  to  change the elements to valid HTML elements.
> That is also impossible for me, for the reason stated above...

It's not really impossible.

As  I  mentioned,  you  need to use namespaced tag names. You could do
this  by  massaging the responseHTML first, then manually construct an
Elements collection.

responseHTML.replace(/<(\/)?/g,'<$1mycustom:');

This  is  more complex than you would want if you had control over the
server  output,  but  the  bottom  line is that you are using a method
called Request.HTML yet it's not receiving valid HTML.

> Other idea I gathered from your answers was to encode the XML into a
> JSON object. That sounded good.

You  have  to be able to parse the HTML (let's not call it XML in this
context)  correctly  in  order  to convert the data intact to JSON, so
this is just extra work IMO.

-- Sandy

Reply via email to