On 4 Sep 2009, at 16:41, Petersen, Jennifer wrote:
I thought that xml embedded in xml was not well-formed.
I know it works in a CDATA as long as the embedded xml does not itself
contain a CDATA. Doesn't work if it does (at least with the parser I
am
using...)
I read something about XML Includes but don't fully understand what it
is...
The < and & characters in the embedded document will be escaped as
< and & by the sender. These will be replaced by < and & by the
XML parser at the client end. Using a CDATA section is not a good idea
because the included document might contain a CDATA section and they
don't nest.
Sending very large documents in this way may well cause you problems.
The server will have to assemble the entire message in memory before
it sends it.
A common way of sending very large items using XML-RPC is to send a
URL which references the item. The client does a GET on the URL to
retrieve the actual data. This can use chunked transfer and the item
can be processed in a streaming manner.
John Wilson