timgolding
01-21-2010, 10:07 PM
if i had two xml documents
1:
<products>
<product>
</product>
<product>
</product>
</products>
and 2:
<products>
<product>
</product>
<product>
</product>
</products>
and i wanted to combine them into one xml document
<products>
<product>
</product>
<product>
</product>
<product>
</product>
<product>
</product>
</products>
So that all the product tags were nested between one products tag how would i go about it. I know how to make
<products>
<product>
</product>
<product>
</product>
</products>
<products>
<product>
</product>
<product>
</product>
</products>
but really i want only one parents. Finding it difficult to get my head around the php documentation on DOM.
1:
<products>
<product>
</product>
<product>
</product>
</products>
and 2:
<products>
<product>
</product>
<product>
</product>
</products>
and i wanted to combine them into one xml document
<products>
<product>
</product>
<product>
</product>
<product>
</product>
<product>
</product>
</products>
So that all the product tags were nested between one products tag how would i go about it. I know how to make
<products>
<product>
</product>
<product>
</product>
</products>
<products>
<product>
</product>
<product>
</product>
</products>
but really i want only one parents. Finding it difficult to get my head around the php documentation on DOM.