devdavad Posted July 10, 2009 Share Posted July 10, 2009 I have two xml files which I want to combine into one xml file (a layout file and a template file). So the structure of the layout goes: <html> <body> <div xml:id="append_here"> </div> </body> </html> and the template goes: <p>test</p> So together: <html> <body> <div><p>test</p></div> </body> </html> Can anybody give me some hints on how to insert a dom document into another dom document? Link to comment https://forums.phpfreaks.com/topic/165532-combining-dom-documents/ Share on other sites More sharing options...
rhodesa Posted July 10, 2009 Share Posted July 10, 2009 copy and import the node: http://us2.php.net/manual/en/domdocument.importnode.php Link to comment https://forums.phpfreaks.com/topic/165532-combining-dom-documents/#findComment-873099 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.