[XML-SIG] XML Parsing Newbie

Rbrennan brennan.ron at gmail.com
Tue Nov 25 21:29:39 CET 2008


I am a xml parsing newbie and I am having a hard time because I am so new. 
I am trying to parse:

<?xml version="1.0" encoding="UTF-8"?>

I want to grab the value of threads which is 100, runs which is 1, duration
which is 200, process which is 400, and rampup which is 500.

Here is my febal attempt at getting the values between the tags:

import xml.dom.minidom
import sys

class textHandler:      
    def parseFile(self):
      tags =
      serverelements = tags.getElementsByTagName ( 'server' )
      for server in serverelements:
          print server.childNodes[0].data
x = textHandler()

Can anyone help?

View this message in context: http://www.nabble.com/XML-Parsing-Newbie-tp20689034p20689034.html
Sent from the Python - xml-sig mailing list archive at Nabble.com.

More information about the XML-SIG mailing list