# Merging xml docs

**URL:** <https://www.ruby-forum.com/t/merging-xml-docs/156950>\
**Category:** Rails\
**Created:** [January 5, 2009, 6:15pm UTC](https://www.ruby-forum.com/t/merging-xml-docs/156950 "2009-01-05T18:15:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/aca169/32.png) [@jamie](https://www.ruby-forum.com/u/jamie)\
**Post date:** [January 5, 2009, 6:15pm UTC](https://www.ruby-forum.com/t/merging-xml-docs/156950/1 "2009-01-05T18:15:02Z")

</div>

I have two xml docs … xml1 and xml2, how do I make xml2 one of the  
elements in xml1

---

<div class="post-metadata">

**Author:** ![jamie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/aca169/32.png) [@jamie](https://www.ruby-forum.com/u/jamie)\
**Post date:** [February 12, 2009, 7:55pm UTC](https://www.ruby-forum.com/t/merging-xml-docs/156950/2 "2009-02-12T19:55:19Z")

</div>

Hi Jamie,

have you found an answer to your question?

How about looking into the REXML library… this way you can load your  
two XML and append your XML2 content to one of the element in XML1

regards,

Jean-Marc

> **[M2i3 - Connecter les besoins aux solutions](https://m2i3.com/)**
>
> Nous sommes M2i3, des "socials-geeks" passionnés par le web, l'infonuagique et les logiciels. Nous vous présentons IncognitoDesk Après des an ...
