apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Stein <gst...@lyra.org>
Subject apr_xml (was: Re: libaprutil.la, libexpat.la, APRUTIL_EXPORT_LIBS)
Date Thu, 17 May 2001 20:50:34 GMT
[ back from a couple days off... ]

Yes: the apr_xml code is currently set up to just use Expat. However, the
intent is that it can be covers for other XML parsers. In particular, Xerces
and libxml would be great options.

And yes, the API is also based a very lightweight tree structure, rather
than event-based. Adding a second set of APIs to set handlers would be a
Good Thing, so please feel free to submit patches to do so.

The insertion of "DAV:" into the set of namespaces is definitely a negative,
but I haven't bothered to spend time to resolve the issue. That is about the
only DAV-specific thing in the whole set of apr_xml routines. The rest is
generally applicable to other problem domains.

The point is: the code originated as part of mod_dav, but it has been
extracted so that other code can use it (config reading? new modules? etc).
However, somebody just needs to spend a bit of time to sand off the rough
edges and to expand the APIs based on what people may need.


On Thu, May 17, 2001 at 08:07:11AM -0700, Ian Holsman wrote:
> I think it is more than that.
> I was trying to get apr_xml usable as a xml_parser 
> the apr-xml api, doesn't provide any hooks so that I can
> be notified when I get an element, (which expat has) and
> is currently hard coded for 'DAV' only.
> in order to be usefull it needs a couple more functions
> to set the start handler, namespace (on create) and to navigate
> the tree a bit better.
> > -----Original Message-----
> > From: Jeff Trawick [mailto:trawickj@bellsouth.net]
> > Sent: Thursday, May 17, 2001 4:37 AM
> > To: Ian Holsman; gstein@apache.org; dev@apr.apache.org
> > Subject: Re: libaprutil.la, libexpat.la, APRUTIL_EXPORT_LIBS
> > 
> > 
> > Ian Holsman <IanH@cnet.com> writes:
> > 
> > > Expat is used by the 'apr_xml' set of routines inside of apr-util
> > > which look hard coded to work only for mod_dav.
> > > 
> > > you could always move expat and the apr_xml stuff into the mod_dav
> > > module directory.
> > 
> > (I don't know what I'm talking about but) maybe
> > apr_xml_parser_create() needs a parameter to specify the namespace?
> > (Or maybe this is an expat-specific concept and we don't want to tie
> > the apr-util API to expat?)
> > 
> > -- 
> > Jeff Trawick | trawickj@bellsouth.net | PGP public key at web site:
> >        http://www.geocities.com/SiliconValley/Park/9289/
> >              Born in Roswell... married an alien...
> > 

Greg Stein, http://www.lyra.org/

View raw message