En xml belgeleri ben var diyelim:
<first_root>
<element1/>
<element2>
<embedded_element/>
</element2>
</first_root>
ve
<foo>
<bar/>
</foo>
How can I put this second xml doc into the first one, using php ve DomDocument or SimpleXML?
Ben böyle bir şey gibi bakmak istiyorum:
<first_root>
<element1/>
<element2>
<foo>
<bar/>
</foo>
<embedded_element/>
</element2>
</first_root>