views:

14

answers:

1

Hi,

I'm using an AJAX system on a web application, and for one of the objects i return, it needs to contain an xml fragment. Unfortunately, being AJAX, i'm sending the values back via XML already.

So, at the moment, i have something that looks like this (ignoring the fact the tags arent perfect.

<Transport>
   <Message>
      <Content><[CDATA...] XML Content in here </Cdata></Content>
   </Message>
</Transport>

This has worked pretty well for the last few years, however, now the XML content itself needs to contain its own CDATA tags and its causing me grief because you cannot nest CDATA sections. Is there another way to encode the 'XML Content' internally?

A: 

Never mind, i just decided to go with custom encoding the contents.

mrwayne