<city>
<name>
Kaunas
</name>
<population>
200000
</population>
<country>
Lietuva
</country>
<name>
Vilnius
</name>
<population>
800000
</population>
<country>
Lietuva
</country>
</city>
and after running spinta inspect -r xml data.xml -o data.xslx I get this result:
id | d | r | b | m | property | type | ref | source | prepare | level | access | uri | title | description
| dataset | | | | | | | | |
| | resource | xml | | data.xml | | | | | |
| | | | | | | | | |
| | | | City | | | /city | | | | | |
| | | | | name[] | string | | name | | | | | |
| | | | | population[] | integer | | population | | | | | |
| | | | | country[] | string | | country | | | | | |
It should be like this:
id | d | r | b | m | property | type | ref | source | prepare | level | access | uri | title | description
| dataset | | | | | | | | |
| | resource | xml | | data.xml | | | | | |
| | | | | | | | | |
| | | | City | | | /city | | | | | |
| | | | | name | string | | name | | | | | |
| | | | | population | integer | | population | | | | | |
| | | | | country | string | | country | | | | | |
Here, property names name[] should instead be name, country[] should be country and population[] should be population.
Example:
I have
XML
data like this:and after running
spinta inspect -r xml data.xml -o data.xslx
I get this result:It should be like this:
Here, property names
name[]
should instead bename
,country[]
should becountry
andpopulation[]
should bepopulation
.