Is there any way or any framework in python to create an object model from a xml?

dannyheath

New Member
for example my xml file contains :\[code\]<layout name="layout1"> <grid> <row> <cell colSpan="1" name="cell1"/> </row> <row> <cell name="cell2" flow="horizontal"/> </row> </grid></layout>\[/code\]and I want to retrieve an object from the xmlfor example returned object structure be like this \[code\]class layout(object): def __init__(self): self.grid=Noneclass grid(object): def __init__(self): self.rows=[]class row(object): def __init__(self): self.cels=[]\[/code\]
 
Back
Top