- Home /
Question by
benfattino · Feb 05, 2016 at 12:13 PM ·
xmlnodes
XML parsing and create UI
I have XML to create UI. This is only example and file will have much more brand_name string.
<Brands>
<Brand brand_name="Brioni">
<Season season_name = "AI_2015">
<Collection collection_name = "Pippo">
<Model model_name = "Abito_01">
<ConfigName>Config_01</ConfigName>
<ConfigName>Config_02</ConfigName>
</Model>
<Model model_name = "Abito_02">
<ConfigName>Config_03</ConfigName>
<ConfigName>Config_04</ConfigName>
</Model>
</Collection>
</Season>
</Brand>
</Brands>
How I can iterate XML in specific node? I want create button Abito_01 e Abito_02 start from Brioni/AI_2015/Pippo. Also i want create another menu with Config_01 and Config_02 start from Brioni/AI_2015/Pippo/Abito_01.
S.
Comment
Alternative X$$anonymous$$L...
<Brands>
<Brand>
<BrandName>Brioni</BrandName>
<Season>
<SeasonName>AI_2015</SeasonName>
<Collection>
<CollectionName>Pippo</CollectionName>
<Type>
<TypeName>Abito_01</TypeName>
<Config>
<ConfigName>Config_01</ConfigName>
<ConfigName>Config_02</ConfigName>
</Config>
</Type>
<Type>
<TypeName>Abito_02</TypeName>
<Config>
<ConfigName>Config_02</ConfigName>
<ConfigName>Config_03</ConfigName>
</Config>
</Type>
</Collection>
</Season>
</Brand>
</Brands>
What is better?