\SimpleXMLElement
Synopsis
class SimpleXMLElement
implements
Traversable
{
- // methods
- public final void __construct()
- public void addAttribute()
- public SimpleXMLElement addChild()
- public mixed asXML()
- public SimpleXMLElement attributes()
- public SimpleXMLElement children()
- public int count()
- public array getDocNamespaces()
- public string getName()
- public array getNamespaces()
- public bool registerXPathNamespace()
- public array xpath()
Hierarchy
Methods
public
- __construct() — Creates a new SimpleXMLElement object
- addAttribute() — Adds an attribute to the SimpleXML element
- addChild() — Adds a child element to the XML node
- asXML() — Return a well-formed XML string based on SimpleXML element
- attributes() — Identifies an element's attributes
- children() — Finds children of given node
- count() — Counts the children of an element
- getDocNamespaces() — Returns namespaces declared in document
- getName() — Gets the name of the XML element
- getNamespaces() — Returns namespaces used in document
- registerXPathNamespace() — Creates a prefix/ns context for the next XPath query
- xpath() — Runs XPath query on XML data