Re: Need to get Tags and Values from Dom

2012-05-14 Thread Stefan Behnel
TommyVee, 14.05.2012 02:50: I have a very simple XML document that I need to walk, and I'm using xml.dom.minidom. No attributes, just lots of nested tags and associated values. All I'm looking to do is iterate through each of the highest sibling nodes, check what the tag is, and process its

Re: Need to get Tags and Values from Dom

2012-05-14 Thread james hedley
On Monday, 14 May 2012 01:50:23 UTC+1, TommyVee wrote: I have a very simple XML document that I need to walk, and I'm using xml.dom.minidom. No attributes, just lots of nested tags and associated values. All I'm looking to do is iterate through each of the highest sibling nodes, check

Re: Need to get Tags and Values from Dom

2012-05-14 Thread TommyVee
james hedley wrote in message news:11852803.89.1337001575700.JavaMail.geo-discussion-forums@vbmd2... On Monday, 14 May 2012 01:50:23 UTC+1, TommyVee wrote: I have a very simple XML document that I need to walk, and I'm using xml.dom.minidom. No attributes, just lots of nested tags and

Re: Need to get Tags and Values from Dom

2012-05-14 Thread Stefan Behnel
TommyVee, 15.05.2012 01:51: Confused? That's an understatement. Part of the problem is that it's been a long time since I learned DOM and now I'm trying to cram to get this program done. Thus my recommendation to use ElementTree. Why go the complicated route when you can just get your code

Need to get Tags and Values from Dom

2012-05-13 Thread TommyVee
I have a very simple XML document that I need to walk, and I'm using xml.dom.minidom. No attributes, just lots of nested tags and associated values. All I'm looking to do is iterate through each of the highest sibling nodes, check what the tag is, and process its value accordingly. If a

Re: Need to get Tags and Values from Dom

2012-05-13 Thread Kushal Kumaran
On Mon, May 14, 2012 at 6:20 AM, TommyVee x...@xx.xxx wrote: I have a very simple XML document that I need to walk, and I'm using xml.dom.minidom.  No attributes, just lots of nested tags and associated values.  All I'm looking to do is iterate through each of the highest sibling