Re: XML Processing

2008-09-19 Thread Steve Holden
Robert Rawlins wrote: >> Some is going to kick themselves when they realise >> that ElementTree *is* built in to Python 2.5 >> >> http://docs.python.org/whatsnew/modules.html#SECTION000142 > > Tim, Andrii, > > Thanks for the heads up on that! I hadn't noticed they're made it part

Re: XML Processing

2008-09-18 Thread Tim Golden
Robert Rawlins wrote: Some is going to kick themselves when they realise that ElementTree *is* built in to Python 2.5 http://docs.python.org/whatsnew/modules.html#SECTION000142 Tim, Andrii, Thanks for the heads up on that! I hadn't noticed they're made it part of the platform

RE: XML Processing

2008-09-18 Thread Robert Rawlins
> Some is going to kick themselves when they realise > that ElementTree *is* built in to Python 2.5 > > http://docs.python.org/whatsnew/modules.html#SECTION000142 Tim, Andrii, Thanks for the heads up on that! I hadn't noticed they're made it part of the platform modules, that's ex

Re: XML Processing

2008-09-18 Thread Tim Golden
Robert Rawlins wrote: I’m running python 2.5 and currently using ElementTree to perform my XML parsing and creation. ElementTree really is a great package for doing this, however, I’ve been tasked by our deployment guys to try and move away from external libraries where possible as it makes the

Re: XML Processing

2008-09-18 Thread Andrii V. Mishkovskyi
2008/9/18 Robert Rawlins <[EMAIL PROTECTED]>: > Guys, > > > > I'm running python 2.5 and currently using ElementTree to perform my XML > parsing and creation. ElementTree really is a great package for doing this, > however, I've been tasked by our deployment guys to try and move away from > externa

Re: XML Processing

2007-08-03 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: >On Aug 2, 2:09 pm, Jay Loden <[EMAIL PROTECTED]> wrote: >> [EMAIL PROTECTED] wrote: >> > On Aug 2, 1:45 pm, Roman <[EMAIL PROTECTED]> wrote: >> >> Is there a package that converts a string that contains special >> >> characters in xml to

Re: XML Processing

2007-08-02 Thread kyosohma
On Aug 2, 2:09 pm, Jay Loden <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > On Aug 2, 1:45 pm, Roman <[EMAIL PROTECTED]> wrote: > >> Is there a package that converts a string that contains special > >> characters in xml to to literal value. For instance, converts > >> stringhttp://myho

Re: XML Processing

2007-08-02 Thread Diez B. Roggisch
Roman schrieb: > Is there a package that converts a string that contains special > characters in xml to to literal value. For instance, converts string > http://myhome/¶m to http://myhome/¶m. import xml.sax.saxutils print xml.sax.saxutils.escape("I'm a happy & friendly guy, and 1 < 3 - neve

Re: XML Processing

2007-08-02 Thread Jay Loden
[EMAIL PROTECTED] wrote: > On Aug 2, 1:45 pm, Roman <[EMAIL PROTECTED]> wrote: >> Is there a package that converts a string that contains special >> characters in xml to to literal value. For instance, converts >> stringhttp://myhome/¶mtohttp://myhome/¶m. >> >> Thanks in advance > > I've seen ex

Re: XML Processing

2007-08-02 Thread Jay Loden
Robert Dailey wrote: > Both strings in your example are exactly the same, unless I'm missing > something. > > On 8/2/07, Roman <[EMAIL PROTECTED]> wrote: >> Is there a package that converts a string that contains special >> characters in xml to to literal value. For instance, converts string >> h

Re: XML Processing

2007-08-02 Thread kyosohma
On Aug 2, 1:45 pm, Roman <[EMAIL PROTECTED]> wrote: > Is there a package that converts a string that contains special > characters in xml to to literal value. For instance, converts > stringhttp://myhome/¶mtohttp://myhome/¶m. > > Thanks in advance I've seen examples using the HTMLgen module. But

Re: XML Processing

2007-08-02 Thread Robert Dailey
Both strings in your example are exactly the same, unless I'm missing something. On 8/2/07, Roman <[EMAIL PROTECTED]> wrote: > > Is there a package that converts a string that contains special > characters in xml to to literal value. For instance, converts string > http://myhome/¶m to http://myho

Re: xml processing speed test

2006-06-07 Thread K.S.Sreeram
Fredrik Lundh wrote: > by using it to split your document into reasonably-sized chunks (one > record, one expression, one text block, one paragraph, etc), and using > Python code to process the chunks. I've updated cElementTree/iterparse implementation to build one full expression at a time. htt

Re: xml processing speed test

2006-06-07 Thread Fredrik Lundh
K.S.Sreeram wrote: > From what i understand, the iterparse interface constructs the xml tree, > but gives you hooks into the tree construction process itself, so that > the programmer can control how much state he wants to retain and how > much state he can discard. > > I wanted the test program

Re: xml processing speed test

2006-06-07 Thread K.S.Sreeram
Fredrik Lundh wrote: > your celementtree example isn't exactly optimal, though... are you sure > you understand how iterparse works? From what i understand, the iterparse interface constructs the xml tree, but gives you hooks into the tree construction process itself, so that the programmer can

Re: xml processing speed test

2006-06-07 Thread Fredrik Lundh
K.S.Sreeram wrote: > All the recent discussions on xml parsing performance got me curious, > and i put together a small speed test for xml processing. your celementtree example isn't exactly optimal, though... are you sure you understand how iterparse works? -- http://mail.python.org/mailma

Re: XML processing

2005-11-30 Thread NavyJay
I haven't used PyXML extensively, but I have used parts of the Amara XML Toolkit (http://uche.ogbuji.net/uche.ogbuji.net/tech/4suite/amara/) and recommend it for elegance. I can't say, however, which tool is faster. There are many other XML modules that people have written for Python. Do your re

Re: xml processing

2005-06-02 Thread Jeff Elkins
On Wednesday 01 June 2005 11:01 am, Steven Bethard wrote: > If you're not committed to pyxml, you might consider using ElementTree: > > http://effbot.org/zone/element-index.htm > > I find it *way* easier to work with. Thanks. I've installed it and am experimenting. -- http://mail.python.org/mai

Re: xml processing

2005-06-01 Thread Steven Bethard
Jeff Elkins wrote: > I've like to use python to maintain a small addressbook which lives on a > Sharp > Zaurus. This list will never grow beyond 200 or so entries. I've installed > pyxml. If you're not committed to pyxml, you might consider using ElementTree: http://effbot.org/zone/element-ind

Re: xml processing

2005-06-01 Thread Jeff Elkins
On Wednesday 01 June 2005 09:51 am, Magnus Lycka wrote: > Jeff Elkins wrote: > > I've like to use python to maintain a small addressbook which lives on a > > Sharp Zaurus. This list will never grow beyond 200 or so entries. I've > > installed pyxml. > > > > Speaking generally, given a wxpython app

Re: xml processing

2005-06-01 Thread Magnus Lycka
Jeff Elkins wrote: > I've like to use python to maintain a small addressbook which lives on a > Sharp > Zaurus. This list will never grow beyond 200 or so entries. I've installed > pyxml. > > Speaking generally, given a wxpython app to do data entry, > I'm planning to: > > 1. parse the addres