Re: Native XML in string parameters

"kereszt_hu" <[email protected]> Wed, 03 Jun 2009 09:36:56 -0000
Newsgroups gmane.text.xml.rpc.specification
Message-ID <[email protected]>
--- In [email protected], John Wilson <tug@...> wrote:
> Yes, the text can be enclosed in a CDATA section:
> 
> <![CDATA[ some text with < and & ]]>
> 
> I'd be slightly nervous about using CDATA sections as some  
> implementations of XML-RPC have used very simple code to parse the XML  
> and may not be able to understand the construct.

Actually, CDATA were my next tip. Your post explained to me that XML-RPC uses just the <string>'s node value and not everything below it. In the later case, one would put both string (of course escaped) and/or sub-tree nodes.

> What XML-RPC implementation are you using? I would expect the  
> implementation to accept and correctly substitute the < and &  
> characters in string parameters.

I've just begun to play with XML-RPC, to evolve our HTTP/POST methods to so-called "web service" ;) Since, it worked well posting simple XMLs I try to avoid the more complicated SOAP thing. However, WSDL also required..

Thanks for your explanation!
Laszlo




------------------------------------

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/