I agree. Are there other oppinions?

An idea that comes to my mind is to provide an org.xml.sax.XMLFilter
implementation that converts the wrapped version to the unwrapped (or
the other way). This should be very easy to implement and will have very
little performance impact. The drawback: You can't use getContentAsDOM()
anymore, you will have to build the DOM manually through SAX. All in all,
maybe not so cool.

> The advantage I see in the un-wrapped version is that it is really easy to 
> get all the nodes by using calls like getChildNodes.  You're right though,
>   the attributes do pollute the resource. This is how dbXML currently works 
> and having to strip those attributes to get a clean resource is a pain. I'
> m not sure which route is better as there is pain in either case.
> 
> On Tuesday, August 7, 2001, at 01:43 AM, Jeremias Maerki wrote:
> 
> >> Here's another alternative. I think I like this one better. By default
> >> collectionURI is only set on the root but if you need it you can also set
> >> it on a child node.
> >>
> >> <xapi:resourceSet xmlns:xapi="http://www.xmldb.org/xapi/ResourceSet";
> >> collectionURI="driver:/path/to/collection">
> >>    <somenode xapi:documentId="1" />
> >>    <somenode xapi:documentId="2" />
> >>    <somenode xapi:documentId="12"
> >> xapi:collectionURI="driver:/path/to/another/collection"/>
> >>    ...
> >> </xapi:resourceSet>
> >
> > Looks good to me except that I'd prefer an xapi:resource wrapper around
> > <somenode>. That would help to keep the resources "clean" from XML:DB
> > stuff. I'm not sure if this is a real benefit, but I prefer it. So, my
> > preferred solution looks like this:
> >
> > <xapi:resourceSet xmlns:xapi="http://www.xmldb.org/xapi/ResourceSet"; 
> > collectionURI="driver:/path/to/collection">
> >     <xapi:resource documentId="1">
> >         <somenode/>
> >     </xapi:resource>
> >     <xapi:resource documentId="2">
> >         <somenode/>
> >     </xapi:resource>
> >     <xapi:resource documentId="12" collectionURI="driver:/path/to/another/
> > collection">
> >         <somenode/>
> >     </xapi:resource>
> >     ...
> > </xapi:resourceSet>
> >
> > What do you think?

Jeremias Märki

mailto:[EMAIL PROTECTED]

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Fon +41 (41) 317 2020 - Fax +41 (41) 317 2029
Internet http://www.outline.ch

----------------------------------------------------------------------
Post a message:         mailto:[EMAIL PROTECTED]
Unsubscribe:            mailto:[EMAIL PROTECTED]
Contact administrator:  mailto:[EMAIL PROTECTED]
Read archived messages: http://archive.xmldb.org/
----------------------------------------------------------------------

Reply via email to