breham 0 Newbie Poster

Hi, I have feed different XML files with different formats that I want to let users map to our database themselves. Example

<product>
<details>
<name>Product One</product>
<cost>20.00</cost>
<available>2</available>
</details>
<technical>
<width>3.00</width>
<height>2.10</height>
</technical>
</product>

What I need to do is be able to loop through the XML document and output the path for each element i.e.

name = "product>details->name"
cost = "product->details->cost"

Like I said there is a different and unknown format for each XML doc.

Any suggestions gratefully received. I have a process that can pull out the asset names i.e. width, height etc but not the path within the document.

Many thanks
Brett