The SimpleXML functions lets you convert XML to an object.
This object can be processed, like any other object, with normal property selectors and array iterators.
Some of these functions requires the newest PHP build.
The SimpleXML functions are part of the PHP core. There is no installation needed to use these functions.
PHP: indicates the earliest version of PHP that supports the function.
| Function | Description | PHP |
|---|---|---|
| __construct() | Creates a new SimpleXMLElement object | 5 |
| addAttribute() | Adds an attribute to the SimpleXML element | 5 |
| addChild() | Adds a child element the SimpleXML element | 5 |
| asXML() | Gets an XML string from a SimpleXML element | 5 |
| attributes() | Gets a SimpleXML element's attributes | 5 |
| children() | Gets the children of a specified node | 5 |
| getDocNamespaces() | Gets the namespaces of an XML document | 5 |
| getName() | Gets the name of a SimpleXML element | 5 |
| getNamespace() | Gets the namespaces from XML data | 5 |
| registerXPathNamespace() | Creates a namespace context for the next XPath query | 5 |
| simplexml_import_dom() | Gets a SimpleXMLElement object from a DOM node | 5 |
| simplexml_load_file() | Gets a SimpleXMLElement object from an XML document | 5 |
| simplexml_load_string() | Gets a SimpleXMLElement object from an XML string | 5 |
| xpath() | Runs an XPath query on XML data | 5 |
None
The perfect solution for professionals who need to balance work, family, and career building.
More than 10 000 certificates already issued!
The HTML Certificate documents your knowledge of HTML.
The CSS Certificate documents your knowledge of advanced CSS.
The JavaScript Certificate documents your knowledge of JavaScript and HTML DOM.
The jQuery Certificate documents your knowledge of jQuery.
The XML Certificate documents your knowledge of XML, XML DOM and XSLT.
The ASP Certificate documents your knowledge of ASP, SQL, and ADO.
The PHP Certificate documents your knowledge of PHP and SQL (MySQL).
| WEB HOSTING |
|---|
| Best Web Hosting |
| PHP MySQL Hosting |
| Best Hosting Coupons |
| UK Reseller Hosting |
| Cloud Hosting |
| Top Web Hosting |
| $7.95/mo SEO Hosting |
| Premium Website Design |
| WEB BUILDING |
|---|
| Download XML Editor |
| FREE Website BUILDER |
| Free Website Templates Free CSS Templates |
| Make Your Own Website |
| W3SCHOOLS EXAMS |
|---|
|
Get Certified in: HTML, CSS, JavaScript, XML, PHP, and ASP |
| W3SCHOOLS BOOKS |
|---|
|
New Books: HTML, CSS JavaScript, and Ajax |
| STATISTICS |
|---|
|
Browser Statistics Browser OS Browser Display |
| SHARE THIS PAGE |
|---|