Re: parsing nested unbounded XML fields with ElementTree

2013-11-27 Thread Larry Martell
On Tue, Nov 26, 2013 at 8:20 AM, Stefan Behnel wrote: > Larry Martell, 26.11.2013 13:23: >> On Tue, Nov 26, 2013 at 2:38 AM, Stefan Behnel wrote: >>> larry.martell...@gmail.com, 25.11.2013 23:22: I have an XML file that has an element called "Node". These can be nested to any depth and

Re: parsing nested unbounded XML fields with ElementTree

2013-11-26 Thread Neil Cerutti
On Mon, Nov 25, 2013 at 5:22 PM, larry.mart...@gmail.com wrote: > I have an XML file that has an element called "Node". These can > be nested to any depth and the depth of the nesting is not > known to me. I need to parse the file and preserve the nesting. > For exmaple, if the XML file had: > >

Re: parsing nested unbounded XML fields with ElementTree

2013-11-26 Thread Stefan Behnel
Larry Martell, 26.11.2013 13:23: > On Tue, Nov 26, 2013 at 2:38 AM, Stefan Behnel wrote: >> larry.martell...@gmail.com, 25.11.2013 23:22: >>> I have an XML file that has an element called "Node". These can be nested >>> to any depth and the depth of the nesting is not known to me. I need to >>> p

Re: parsing nested unbounded XML fields with ElementTree

2013-11-26 Thread alister
On 26/11/13 11:59, Larry Martell wrote: On Tue, Nov 26, 2013 at 5:41 AM, Alister wrote: On Mon, 25 Nov 2013 18:25:55 -0500, Larry Martell wrote: On Mon, Nov 25, 2013 at 6:19 PM, Chris Angelico wrote: On Tue, Nov 26, 2013 at 9:45 AM, Larry Martell wrote: On Monday, November 25, 2013 5:30:

Re: parsing nested unbounded XML fields with ElementTree

2013-11-26 Thread Larry Martell
On Tue, Nov 26, 2013 at 2:38 AM, Stefan Behnel wrote: > larry.martell...@gmail.com, 25.11.2013 23:22: >> I have an XML file that has an element called "Node". These can be nested to >> any depth and the depth of the nesting is not known to me. I need to parse >> the file and preserve the nesting

Re: parsing nested unbounded XML fields with ElementTree

2013-11-26 Thread Chris Angelico
On Tue, Nov 26, 2013 at 10:59 PM, Larry Martell wrote: > Sorry, didn't realize it was sending in HMTL. I had it set to plain > text, but when the awful gmail update came out it seems to have > reverted to HTML. Hopefully this is better. Yeah, I have the same trouble... but yes, this post looks fi

Re: parsing nested unbounded XML fields with ElementTree

2013-11-26 Thread Larry Martell
On Tue, Nov 26, 2013 at 5:41 AM, Alister wrote: > > On Mon, 25 Nov 2013 18:25:55 -0500, Larry Martell wrote: > > > On Mon, Nov 25, 2013 at 6:19 PM, Chris Angelico > > wrote: > > > >> On Tue, Nov 26, 2013 at 9:45 AM, Larry Martell > >> > >> wrote: > >> > On Monday, November 25, 2013 5:30:44 PM UT

Re: parsing nested unbounded XML fields with ElementTree

2013-11-26 Thread Alister
On Mon, 25 Nov 2013 18:25:55 -0500, Larry Martell wrote: > On Mon, Nov 25, 2013 at 6:19 PM, Chris Angelico > wrote: > >> On Tue, Nov 26, 2013 at 9:45 AM, Larry Martell >> >> wrote: >> > On Monday, November 25, 2013 5:30:44 PM UTC-5, Chris Angelico wrote: >> > >> >> First off, please clarify: Ar

Re: parsing nested unbounded XML fields with ElementTree

2013-11-25 Thread Stefan Behnel
larry.martell...@gmail.com, 25.11.2013 23:22: > I have an XML file that has an element called "Node". These can be nested to > any depth and the depth of the nesting is not known to me. I need to parse > the file and preserve the nesting. For exmaple, if the XML file had: > > > > >

Re: parsing nested unbounded XML fields with ElementTree

2013-11-25 Thread Larry Martell
On Mon, Nov 25, 2013 at 6:19 PM, Chris Angelico wrote: > On Tue, Nov 26, 2013 at 9:45 AM, Larry Martell > wrote: > > On Monday, November 25, 2013 5:30:44 PM UTC-5, Chris Angelico wrote: > > > >> First off, please clarify: Are there five corresponding tags > >> later on? If not, it's not XML, an

Re: parsing nested unbounded XML fields with ElementTree

2013-11-25 Thread Chris Angelico
On Tue, Nov 26, 2013 at 9:45 AM, Larry Martell wrote: > On Monday, November 25, 2013 5:30:44 PM UTC-5, Chris Angelico wrote: > >> First off, please clarify: Are there five corresponding tags >> later on? If not, it's not XML, and nesting will have to be defined >> some other way. > > Yes, there a

Re: parsing nested unbounded XML fields with ElementTree

2013-11-25 Thread Larry Martell
On Monday, November 25, 2013 5:30:44 PM UTC-5, Chris Angelico wrote: > On Tue, Nov 26, 2013 at 9:22 AM, larry.mart...@gmail.com > > wrote: > > > I have an XML file that has an element called "Node". These can be nested > > to any depth and the depth of the nesting is not known to me. I need to

Re: parsing nested unbounded XML fields with ElementTree

2013-11-25 Thread Chris Angelico
On Tue, Nov 26, 2013 at 9:22 AM, larry.mart...@gmail.com wrote: > I have an XML file that has an element called "Node". These can be nested to > any depth and the depth of the nesting is not known to me. I need to parse > the file and preserve the nesting. For exmaple, if the XML file had: > >

parsing nested unbounded XML fields with ElementTree

2013-11-25 Thread larry.mart...@gmail.com
I have an XML file that has an element called "Node". These can be nested to any depth and the depth of the nesting is not known to me. I need to parse the file and preserve the nesting. For exmaple, if the XML file had: When I'm parsing Node "E" I need to know I