Re: Need to parse python dictionaries into xml

2010-06-16 Thread Stefan Behnel
abhijeet thatte, 16.06.2010 20:41: On Wed, Jun 16, 2010 at 10:57 AM, Stefan Behnel wrote: You should start by writing down the XML structure that you want to build for the above dict. That will make it clear what needs to be done. /**

Re: Need to parse python dictionaries into xml

2010-06-16 Thread abhijeet thatte
On Wed, Jun 16, 2010 at 10:43 AM, Ian Kelly wrote: > On Wed, Jun 16, 2010 at 10:46 AM, abhijeet thatte > wrote: > > I am parsing some hardware format which finally I need to convert in xml. > > The intermediate step is dicts. > > So, the structure looks like this: > > > {chip_name:'myChip',chip_

Re: Need to parse python dictionaries into xml

2010-06-16 Thread abhijeet thatte
On Wed, Jun 16, 2010 at 10:57 AM, Stefan Behnel wrote: > Hi, please avoid top-posting. > > abhijeet thatte, 16.06.2010 18:46: > > On Tue, Jun 15, 2010 at 11:09 PM, Stefan Behnel wrote: >> >>> abhijeet thatte, 16.06.2010 03:05: >>> I am a novice Python user. I am using Python to parse some h

Re: Need to parse python dictionaries into xml

2010-06-16 Thread Stefan Behnel
Hi, please avoid top-posting. abhijeet thatte, 16.06.2010 18:46: On Tue, Jun 15, 2010 at 11:09 PM, Stefan Behnel wrote: abhijeet thatte, 16.06.2010 03:05: I am a novice Python user. I am using Python to parse some hardware specifications and create xml files from them. I generate dict of reall

Re: Need to parse python dictionaries into xml

2010-06-16 Thread Ian Kelly
On Wed, Jun 16, 2010 at 10:46 AM, abhijeet thatte wrote: > I am parsing some hardware format which finally I need to convert in xml. > The intermediate step is dicts. > So, the structure looks like this: > {chip_name:'myChip',chip_clock:'3.07',chip_peripherals:{peripheral1:{mode:'mode1',register:{

Re: Need to parse python dictionaries into xml

2010-06-16 Thread abhijeet thatte
I am parsing some hardware format which finally I need to convert in xml. The intermediate step is dicts. So, the structure looks like this: {chip_name:'myChip',chip_clock:'3.07',chip_peripherals:{peripheral1:{mode:'mode1',register:{}},peripheral2:{},peripheral3:{...}}} I think this example gi

Re: Need to parse python dictionaries into xml

2010-06-15 Thread Stefan Behnel
abhijeet thatte, 16.06.2010 03:05: I am a novice Python user. I am using Python to parse some hardware specifications and create xml files from them. I generate dict of really huge sizes. (I am parsing some 10,000 register definitions.) Why do you need these intermediate dicts? So, it looks

Need to parse python dictionaries into xml

2010-06-15 Thread abhijeet thatte
Hello, I am a novice Python user. I am using Python to parse some hardware specifications and create xml files from them. I generate dict of really huge sizes. (I am parsing some 10,000 register definitions.) So, it looks like : {elem1,elem2, elem3,dict1,{elem4,elem5, dict2 {elem6, elem7, dict3{..