Hello I would like to get access to some data in a xml using xpath but I don't know how to achieve it, The aim is to get the result like this:
1245, 00185, 10, new york
1245, 00185, 5, london
1246, 00186, 10, madrid
1246, 00186, 5, paris
1246, 00186, 8, munich
The xml is this one:
<?xml version="1.0"?>
<result>
<registry code="1245">
<PR_COD>00185</PR_COD>
<PR_DRE ncols="2">
<row>
<column_1>10</column>
<column_2>new york</column>
</row>
<row>
<column_1>5</column>
<column_2>london</column>
</row>
</PR_DRE>
</registry>
<registry code="1246">
<PR_COD>00186</PR_COD>
<PR_DRE ncols="3">
<row>
<column_1>10</column>
<column_2>madrid</column>
</row>
<row>
<column_1>5</column>
<column_2>paris</column>
</row>
<row>
<column_1>8</column>
<column_2>munich</column>
</row>
</PR_DRE>
</registry>
</result>