W3C home > Mailing lists > Public > www-archive@w3.org > March 2002

Xml Serialization for Ruby: serialization styles

From: Dan Brickley <danbri@w3.org>
Date: Thu, 21 Mar 2002 06:47:15 -0500 (EST)
To: <chrismo@charter.net>
cc: <www-archive@w3.org>
Message-ID: <Pine.LNX.4.30.0203210641020.22047-100000@tux.w3.org>
(copying www-archive public mail archive so I can reference this later; I
guess I should subscribe to ruby-talk... (feel free to fwd if relevant))


Just found your announcement, http://www.ruby-talk.org/blade/36052

This is pretty cool :)

I was wondering whether you had looked at a couple of common graph
serialization conventions: RDF (usually used for structured data exchange)
and the SOAP XML protocol Encoding format (more often used for objects /
RPC etc).

I've got some rough notes on both at
http://www.w3.org/2001/sw/interest/soaptech/ if you're interested.

One issue is that there are various ways in which one might turn an object
graph into XML elements and attributes. SOAP and RDF do it slightly
differently: SOAP uses element names for edge names, always. RDF
alternates between elements-as-nodes and elements-as-edges. It'd be
neat if your package could expose one of these formats, or offer some user
control over the serialization style. Using XML namespaces might be
an interesting thing to explore too.

BTW the marshalling code in the  SOAP4R package implements this sort of
thing for SOAP Encoding, it might be worth taking a look at that if you
haven't already.

Nice work :)


Received on Thursday, 21 March 2002 06:47:16 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:42:05 UTC