Answer the question
In order to leave comments, you need to log in
How to create such a nested array?
At the input there is xml data that I want to process and output to an array. Example of initial data:
<Cities City_ID="1196910018" City_owner_ID="0" CityName="52127 городок" RegionName="Московская обл." Region_ID="40" Region_Owner_ID="0" Country_ID="209" Country_Owner_ID="0"/>
<Cities City_ID="1940" City_owner_ID="0" CityName="Якшур-Бодья" RegionName="Удмуртская респ." Region_ID="84" Region_Owner_ID="0" Country_ID="209" Country_Owner_ID="0"/>
<Cities City_ID="1196906999" City_owner_ID="0" CityName="4-й Участок" RegionName="Московская обл." Region_ID="40" Region_Owner_ID="0" Country_ID="209" Country_Owner_ID="0"/>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question