#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2003
    Posts
    6
    Rep Power
    0

    xml parser script


    hello,

    im absolutely new to python, but i have to parse an xml file.
    i saw that there are already some modules inside python that could do that. but i dont know which one to use and how?

    how do i for example open the xml file itself?

    can someone post a short sample script to do the parsing maybe?

    thanks a lot!
  2. #2
  3. Hello World :)
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2003
    Location
    Hull, UK
    Posts
    2,537
    Rep Power
    69

    XML Python Column.


    Hi Grumble,

    Not really gonna be able to offer much help here not ever having used Python with XML before, but can u sugest you take a look at the Python column on xml.com, if your looking for examples I'd look there.

    http://xml.com/pub/q/pyxml

    Have fun,
    Mark.
  4. #3
  5. Hello World :)
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2003
    Location
    Hull, UK
    Posts
    2,537
    Rep Power
    69
    Just to add, you should also probably check out the Python Special Interest Group for XML.

    http://www.python.org/sigs/xml-sig/

    Mark.

IMN logo majestic logo threadwatch logo seochat tools logo