PHP Basic
PHP HOMEPHP Intro
PHP Install
PHP Syntax
PHP Variables
PHP String
PHP Operators
PHP If...Else
PHP Switch
PHP Arrays
PHP While Loops
PHP For Loops
PHP Functions
PHP Forms
PHP $_GET
PHP $_POST
PHP Advanced
PHP DatePHP Include
PHP File
PHP File Upload
PHP Cookies
PHP Sessions
PHP E-mail
PHP Secure E-mail
PHP Error
PHP Exception
PHP Filter
PHP Database
MySQL IntroductionMySQL Connect
MySQL Create
MySQL Insert
MySQL Select
MySQL Where
MySQL Order By
MySQL Update
MySQL Delete
PHP ODBC
PHP XML
XML Expat ParserXML DOM
XML SimpleXML
PHP and AJAX
AJAX IntroAJAX PHP
AJAX Database
AJAX XML
AJAX Live Search
AJAX RSS Reader
AJAX Poll
PHP Reference
PHP ArrayPHP Calendar
PHP Date
PHP Directory
PHP Error
PHP Filesystem
PHP Filter
PHP FTP
PHP HTTP
PHP Libxml
PHP Mail
PHP Math
PHP Misc
PHP MySQL
PHP SimpleXML
PHP String
PHP XML
PHP Zip
PHP Quiz
PHP QuizPHP Certificate
PHP SimpleXML Functions
| « Previous | Next Chapter » |
PHP SimpleXML Introduction
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.
Installation
The SimpleXML functions are part of the PHP core. There is no installation needed to use these functions.
PHP SimpleXML 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 |
| getNamespaces() | 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 |
PHP SimpleXML Constants
None
| « Previous | Next Chapter » |
