Re: XML Processing

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tim Golden

    Re: XML Processing

    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/modu...00000000000000
    >
    Tim, Andrii,
    >
    Thanks for the heads up on that! I hadn't noticed they're made it part of
    the platform modules, that's excellent news.
    >
    In theory I should just be able to amend my import paths and we'll be good
    to go, no install external modules.
    I imagine I'm not the only person with conditional
    imports of this type:

    try:
    from xml.etree import cElementTree as ET
    except ImportError:
    from elementtree import ElementTree as ET


    TJG
Working...