DOM extension gives us the ability to create whole new documents using its numerous functions. In this recipe you will learn how to create new XML documents using DOM functions. As you know we have multiple book elements in our
common.xml file, we will create a similar book element with name and story elements using DOM methods.
Create a new folder
Recipe5 in the
<?php $objXML ...