Mark Wilson I am the creator of TopXML. I am available for international and local (Australia) contracts. I am a Solution Architect/Business Analyst. I have worked in IT in several countries (NZ, Australia, South Africa, UK) building and training teams for government and very large non-governmental organizations. I am ex-Microsoft Consulting Services. I wrote the first book on Microsoft XML published in 2000 called XML Programming with VB and ASP. Most recently I have been building tools for the SEO industry. Ask me for a 37 point SEO health-checkup for your website.
First posted :
03/24/2008
Times viewed :
982
DOMDocument Function createDocumentFragment
PHP Version: (No version information might be only in CVS. I have
used this function in PHP5)
This function
returns a new instance of class DOMAttr. The name of the attribute is the value
of the first parameter. This node will not show up in the document unless it is
inserted with e.g. DOMNode->appendChild().
The return value
is FALSE if an error occurred.
Example:
The XML file, which I have used contains following
data. I have stored this file in “c:/topxml_demo/php/xml_files/employee.xml”
directory.