Jump to content

append 2 xml files with php


x_maras

Recommended Posts

Hi,

 

I want to append 2 xml files

 

they are similar but not the same and I want to append them.

The first contains some more nodes from the second but they have the same structure.

 

e.g.

<items>
<item>
	<node1></node1>
	<node2></node2>
	<node3></node3>
	<node4></node4>
	<node5></node5>
</item>
<item>
	.
	.
	.
</item>
	.
	.
	.
</items>

 

What I want is to take all the item nodes from the second file and to append the in the first file as childs of the "items" node.

 

Any tips would be appreciated!

Thanks in advance,

Dinos

Link to comment
https://forums.phpfreaks.com/topic/177326-append-2-xml-files-with-php/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.