Re: Native XML in string parameters
Fred Drake <[email protected]> Tue, 02 Jun 2009 10:48:05 -0400
| Newsgroups | gmane.text.xml.rpc.specification |
|---|---|
| Message-ID | <[email protected]> |
On Jun 2, 2009, at 10:24 AM, kereszt_hu wrote:
> According to XML-RPC spec, parameter value of <string> cannot
> contain < or &. This means, sending XML as a parameter should be
> escaped. Even though, it is going to be part of another XML. Am I
> right?
> Maybe, I've gone too far. Please, clarify me either how to pass XML
> as a parameter value or XML-RPC is not for this use and I must crack
> down to simpler parameters or encoded (xml or base64) values.
The safest approach is to taken encoded XML and base-64 encode it as a
binary payload. This way you don't have to know or are about the
encoding of the payload XML.
-Fred
--
Fred Drake <fdrake at acm.org>
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/xml-rpc/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/xml-rpc/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[email protected]
mailto:[email protected]
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/