Re: Counting Elements in an xml file

2008-08-31 Thread Gerard flanagan
Ouray Viney wrote: Hi All: I am looking at writing a python script that will let me parse a TestSuite xml file that contains n number of TestCases. My goal is to be able to count the elements base on a key value pair in the xml node. Example I would like to be able to count the number of T

Re: Counting Elements in an xml file

2008-08-30 Thread Ouray Viney
On Aug 30, 2:17 pm, Paul Boddie <[EMAIL PROTECTED]> wrote: > On 30 Aug, 19:37, Ouray Viney <[EMAIL PROTECTED]> wrote: > > > > > > > > I would like to be able to count the number of TestCases that contain > > the "execute=true" but not the ones that contain "execute=false". > > With XPath-capable l

Re: Counting Elements in an xml file

2008-08-30 Thread Paul Boddie
On 30 Aug, 19:37, Ouray Viney <[EMAIL PROTECTED]> wrote: > > > > I would like to be able to count the number of TestCases that contain > the "execute=true" but not the ones that contain "execute=false". With XPath-capable libraries, it should be enough to execute an XPath query on the document. F

Re: Counting Elements in an xml file

2008-08-30 Thread Fredrik Lundh
Ouray Viney wrote: I am looking at writing a python script that will let me parse a TestSuite xml file that contains n number of TestCases. My goal is to be able to count the elements base on a key value pair in the xml node. Example I would like to be able to count the number of TestCases

Re: Counting Elements in an xml file

2008-08-30 Thread Marco Bizzarri
On Sat, Aug 30, 2008 at 7:37 PM, Ouray Viney <[EMAIL PROTECTED]> wrote: > Hi All: > > I am looking at writing a python script that will let me parse a > TestSuite xml file that contains n number of TestCases. > > My goal is to be able to count the elements base on a key > value pair in the xml nod

Counting Elements in an xml file

2008-08-30 Thread Ouray Viney
Hi All: I am looking at writing a python script that will let me parse a TestSuite xml file that contains n number of TestCases. My goal is to be able to count the elements base on a key value pair in the xml node. Example I would like to be able to count the number of TestCases that contain