0

PHP SimpleXML Functions

Posted by jujur on 5:51 AM

PHP SimpleXML Functions


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
Creates a new SimpleXMLElement object
5
Adds an attribute to the SimpleXML element
5
Adds a child element the SimpleXML element
5
Gets an XML string from a SimpleXML element
5
Gets a SimpleXML element's attributes
5
Gets the children of a specified node
5
Gets namespaces of an XML document
5
Gets the name of a SimpleXML element
5
Gets namespaces from XML data
5
Creates a namespace context for the next XPath query
5
Gets a SimpleXMLElement object from a DOM node.
5
Gets a SimpleXMLElement object from an XML document
5
Gets a SimpleXMLElement object from an XML string
5
Runs an XPath query on XML data
5


PHP SimpleXML Constants

None



0 Comments

Copyright Jujur Soaloon Sitangang Lipan All rights reserved. Theme by Sitanggang. | Bloggerized by Soalparna.