Re: [Tutor] Retrieving the text of a XML tag with ElementTree

2005-09-14 Thread Kent Johnson
Bernard Lebel wrote: > Hello, > > Let say I have this XML chunk: > > > > > > > >type="visibility"> > >fullname="Camera_Root.visibility.viewvis" type="Parameter" > sourceclassname="nosource">False > > > I wish to retrieve the "False" between the opening

Re: [Tutor] Retrieving the text of a XML tag with ElementTree

2005-09-14 Thread Bernard Lebel
Oops, false alarm. I was reading the wrong tag (the tag instead of a one). Sorry! Bernard On 9/14/05, Bernard Lebel <[EMAIL PROTECTED]> wrote: > Hello, > > Let say I have this XML chunk: > > > > > > > >type="visibility"> > >fullname="Camera_Roo

[Tutor] Retrieving the text of a XML tag with ElementTree

2005-09-14 Thread Bernard Lebel
Hello, Let say I have this XML chunk: False I wish to retrieve the "False" between the opening/closing tags. I thought I could use something like: from elementtree.ElementTree import parse oTree = parse( r'C:\temp\Camera_Root.xml' ) for oXMLObject in oT