W3C home > Mailing lists > Public > w3c-dist-auth@w3.org > January to March 2009

Re: Serializing xml nodes

From: Julian Reschke <julian.reschke@gmx.de>
Date: Mon, 09 Feb 2009 09:32:23 +0100
Message-ID: <498FEA17.7060605@gmx.de>
To: Evert | Rooftop <evert@rooftopsolutions.nl>
CC: w3c-dist-auth@w3.org

Evert | Rooftop wrote:
> Hi guys,
> 
> I'm working on a WebDAV implementation, and for convenience i'd like to 
> serialize the full xml namespace + tag name into a single string.
> 
> So far I've used:
> 
> DAV:#resourcetype
> 
> But, I realize this isn't ideal because XML namespaces can contain the 
> #. I've seen some WebDAV use :
> 
> {DAV:}resourcetype
> 
> Would this be the preferred serialization method?
> ...

Indeed.

This is the format proposed by Jim Clark a long time ago, so sometimes 
it's called "Clark Notation". It's also used in quite a few APIs that 
use namespace/localname pairs as identifiers, such as in SAX or in JCR 2.0.

BR, Julian
Received on Monday, 9 February 2009 08:33:04 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 2 June 2009 18:44:16 GMT