Utherr12 Posted April 4, 2011 Share Posted April 4, 2011 I have this piece of code: $plugin_tag = $xxml->children(); $xml->addChild($plugin_tag->asXML()); both of $xml and $xxml are retrieved from an URL.The structure of both in my particular case is xml: <repository></repository>xxml: <repository> <plugin> ... something here... </plugin></repository> What I want to do is to insert the plugin child of xxml to the repository parent of xml. The above code doesn't work unfortunately. I also need all the "plugin" elements if repository has more then 1 plugin node child of repository, is it different from my particular case? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.