The XML looks like this:
<?xml version="1.0" encoding="UTF-8" ?>
<nodes xmlns:xsi="http://ift.tt/ra1lAU">
<element>Content1</element>
<element>Content2</element>
<element>Content3</element>
<parent>
<element>Content4</element>
<element>Content5</element>
<parent>
<element>Content6</element>
<parent>
<element>Content7</element>
<element>Content8</element>
</parent>
<element>Content9</element>
</parent>
<element>Content10</element>
<element>Content11</element>
</parent>
<element>Content12</element>
<parent>
<element>Content13</element>
<element>Content14</element>
</parent>
<element>Content15</element>
</nodes>
I want to select all nodes called elements, also if they are inside of parent and i want to know how many parent elements they have so I can display this html structure in html like this:
<pre>
Content1
Content2
Content3
Content4
Content5
Content6
Content7
Content8
Content9
Content10
Content11
Content12
Content13
Content14
Content15
</pre>
Any thoughts?
Aucun commentaire:
Enregistrer un commentaire