Can this XML be represented in CSV - Objective C -


i have following structure of xml can convert csv(ideally objective-c)

<root>  <parent>   <name>somename</name>   <age>20</age>   <child>     <childitem1>somevalue</childitem1>     <childitem2>somevalue</childitem2>   </child>   <child>     <childitem1>somevalue</childitem1>     <childitem2>somevalue</childitem2>   </child>  </parent>  <parent>   <name>somename</name>   <age>20</age>   <child>     <childitem1>somevalue</childitem1>     <childitem2>somevalue</childitem2>   </child>   <child>     <childitem1>somevalue</childitem1>     <childitem2>somevalue</childitem2>   </child>  </parent> </root> 

the problem facing list formation of nodes.

thanks in advance

edited : problem need xml above result of csv/excel spread sheet, dont know how create such format of cells in it.

csv describes grid of data.

xml describes tree of data.

the xml directly converted csv 1 root node, containing 1 or more elements of same type, each of contained same number , types of elements children.

this xml doesn't fit criteria, need come explicit rules convert data structure csv , back. if every parent element contains 2 child elements (which unlikely in real data, holds example) flatten children.


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -