I am trying to merge 2 xml files in to one. They simply need to one another. Any help would be appreciated.

File 1:
<?xml version="1.0" encoding="ISO-8859-1"?> 
<catalog>
	<data>
		<title>Title1</title>
		<description>Description1</description>
	</data>
	<data>
		<title>Title2</title>
		<description>Description2</description>
	</data>
</catalog>


File 2:
<?xml version="1.0" encoding="ISO-8859-1"?> 
<catalog>
	<data>
		<title>Title3</title>
		<description>Description1</description>
	</data>
	<data>
		<title>Title4</title>
		<description>Description2</description>
	</data>
</catalog>


Expected result:
<?xml version="1.0" encoding="ISO-8859-1"?> 
<catalog>
	<data>
		<title>Title1</title>
		<description>Description1</description>
	</data>
	<data>
		<title>Title2</title>
		<description>Description2</description>
	</data>
	<data>
		<title>Title3</title>
		<description>Description1</description>
	</data>
	<data>
		<title>Title4</title>
		<description>Description2</description>
	</data>
</catalog>

Recommended Answers

A quick google found this.

Link

Jump to Post

All 2 Replies

A quick google found this.

Link

@MikeyIsMe that was a very helpful link

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.