[XML-SIG] I am confused!.. can I pick someones brains on pars
ers?
James Tauber
jtauber@bowstreet.com
Sun, 1 Apr 2001 20:49:51 -0400
One of the characteristics of XML is that it provides a common syntax
*regardless* of application and so a certain level of processing can be done
that is *not* application specific.
An XML parser or XSLT engine are examples of this.
Typically, however, you want to build application specific objects from your
XML. This can be done in a layered approach with a generic event-firing XML
parser connected to an application specific object builder.
If you look, for example, at the code for PyTREX (at
http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/pytrex/pytrex.py?rev=5.0&conte
nt-type=text/x-cvsweb-markup&cvsroot=pytrex) you'll see a series of handlers
that respond to events from the parser expat by building up application
specific objects.
Hope this helps.
James
> -----Original Message-----
> From: gary cor [mailto:stuff4gary@hotmail.com]
> Sent: Sunday, April 01, 2001 7:52 PM
> To: xml-sig@python.org
> Subject: [XML-SIG] I am confused!.. can I pick someones brains on
> parsers?
>
>
> I am just starting doing my first bits of XML application
> development in
> python and for the large part am rushing around trying to get
> to grips with
> the concepts involved to create applications in publishing
> for editors.
>
> It seems to me that there are loads of parsers in python for
> XML that do the
> similar things, I wonder if someone could try and explain to
> me how parsers
> differ from Dynamic Linking Extensions on a PC or a Macintosh
> extension
> files and developing for these systems. Is it not possible
> to have one
> parser for image files (like a image gear DLL), another for
> dealing with
> text data, another for XHTML, another for SVG, another for
> movies, etc...
> My point being can't parsers be more application specific?
> And if they are
> application specific how do I find which ones I should use
> where and the way
> each is to be used for its task within its application?
>
> Kind Regards
>
> Gary C
> ______________________________________________________________
> ___________
> Get Your Private, Free E-mail from MSN Hotmail at
http://www.hotmail.com.
_______________________________________________
XML-SIG maillist - XML-SIG@python.org
http://mail.python.org/mailman/listinfo/xml-sig