Re: [Zope3-dev] xml import / export in z2 & z3

2005-12-12 Thread Kapil Thangavelu
fwiw, we're working on doing this in plone land, utilizing the non standard, fast, incremental, validating XmlReader interface from libxml and pluggable namespace handlers. the xmlreader iface is very SAX like. http://svn.plone.org/view/archetypes/Marshall/branches/k_vertigo-pluggable-ns/ -k

Re: [Zope3-dev] xml import / export in z2 & z3

2005-12-08 Thread Joseph Method
There's also Amara, which is designed to be Pythonic: http://uche.ogbuji.net/uche.ogbuji.net/tech/4suite/amara/ On 12/7/05, Jean-Marc Orliaguet <[EMAIL PROTECTED]> wrote: > Martijn Faassen wrote: > > > Andreas Jung wrote: > > > >>> I'm about to write an xml importer for importing simple data > >>

Re: [Zope3-dev] xml import / export in z2 & z3

2005-12-07 Thread Jean-Marc Orliaguet
Martijn Faassen wrote: Andreas Jung wrote: I'm about to write an xml importer for importing simple data (properties, dictionaries). Exporting is easy, importing is trickier because a parser is required. Is there any prefered framework for doing such things in zope3 (zope2)? Sax or DOM..

Re: [Zope3-dev] xml import / export in z2 & z3

2005-12-07 Thread Martijn Faassen
Jean-Marc Orliaguet wrote: Andreas Jung wrote: Sax or DOM...it depends on the usecase and the algorithmic approach you take. Sax is fast but you have to build your own datastructures, DOM is slow, takes a lot of memory but it gives you a tree to perform any fancy operation on it.. now I've

Re: [Zope3-dev] xml import / export in z2 & z3

2005-12-07 Thread Martijn Faassen
Andreas Jung wrote: I'm about to write an xml importer for importing simple data (properties, dictionaries). Exporting is easy, importing is trickier because a parser is required. Is there any prefered framework for doing such things in zope3 (zope2)? Sax or DOM...it depends on the usecase an

Re: [Zope3-dev] xml import / export in z2 & z3

2005-12-07 Thread Martijn Faassen
Jean-Marc Orliaguet wrote: I'm about to write an xml importer for importing simple data (properties, dictionaries). Exporting is easy, importing is trickier because a parser is required. Is there any prefered framework for doing such things in zope3 (zope2)? CMFSetup uses sax, GenericSetup us

Re: [Zope3-dev] xml import / export in z2 & z3

2005-12-06 Thread Jean-Marc Orliaguet
Andreas Jung wrote: --On 6. Dezember 2005 16:46:02 +0100 Jean-Marc Orliaguet <[EMAIL PROTECTED]> wrote: Hi! I'm about to write an xml importer for importing simple data (properties, dictionaries). Exporting is easy, importing is trickier because a parser is required. Is there any prefe

Re: [Zope3-dev] xml import / export in z2 & z3

2005-12-06 Thread Dieter Maurer
Jean-Marc Orliaguet wrote at 2005-12-6 16:46 +0100: > ... >CMFSetup uses sax, GenericSetup uses sax too. ZCML relies on sax... Does >it mean that writing a sax parser is the way to go, No need to write one -- Python comes with one... -- Dieter ___ Zop

Re: [Zope3-dev] xml import / export in z2 & z3

2005-12-06 Thread Andreas Jung
--On 6. Dezember 2005 16:46:02 +0100 Jean-Marc Orliaguet <[EMAIL PROTECTED]> wrote: Hi! I'm about to write an xml importer for importing simple data (properties, dictionaries). Exporting is easy, importing is trickier because a parser is required. Is there any prefered framework for doing

[Zope3-dev] xml import / export in z2 & z3

2005-12-06 Thread Jean-Marc Orliaguet
Hi! I'm about to write an xml importer for importing simple data (properties, dictionaries). Exporting is easy, importing is trickier because a parser is required. Is there any prefered framework for doing such things in zope3 (zope2)? CMFSetup uses sax, GenericSetup uses sax too. ZCML relie