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
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
> 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
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
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
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
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
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
[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
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
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
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
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
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
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
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
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
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
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
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
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
21 matches
Mail list logo