SimpleXML: Creating File Contain Part of Another XML DocumentTag: SimpleXML, SimpleXMLElement, XML, element Category: PHP Basicpost: 17 Apr 2008 read: 495 PHP SimpleXML Step By Step Tutorial - Part 6: If we want to create a XML Document that contain part of another XML Document, we can combine asXML and SimpleXMLElement. For example see like this:
Result become like this:
From above, we take one subtree and enter to new file named "test2.xml". From code above, you can practice with other such as:
| ||
| | Give Your Opinion | Recommend |
|

