SimpleXMLTable of Contents
The SimpleXMLElement classIntroductionRepresents an element in an XML document. Class synopsisSimpleXMLElement
class SimpleXMLElement
implements
Traversable
{
/* Methods */
final public __construct
( string
$data
[, int $options = 0
[, bool $data_is_url = false
[, string $ns = ""
[, bool $is_prefix = false
]]]] )
public void addAttribute
( string
$name
[, string $value
[, string $namespace
]] )
public SimpleXMLElement addChild
( string
$name
[, string $value
[, string $namespace
]] )
public mixed asXML
([ string
$filename
] )
public SimpleXMLElement attributes
([ string
$ns = NULL
[, bool $is_prefix = false
]] )
public SimpleXMLElement children
([ string
$ns
[, bool $is_prefix = false
]] )
public int count
( void
)
public array getDocNamespaces
([ bool
$recursive = false
[, bool $from_root = true
]] )
public string getName
( void
)
public array getNamespaces
([ bool
$recursive = false
] )
public bool registerXPathNamespace
( string
$prefix
, string $ns
)
public string __toString
( void
)
public array xpath
( string
}$path
)The SimpleXMLIterator classIntroductionThe SimpleXMLIterator provides recursive iteration over all nodes of a SimpleXMLElement object. Class synopsisSimpleXMLIterator
class SimpleXMLIterator
extends
SimpleXMLElement
implements
RecursiveIterator
,
Countable
{
/* Methods */
public mixed current
( void
)
public SimpleXMLIterator getChildren
( void
)
public bool hasChildren
( void
)
public mixed key
( void
)
public void next
( void
)
public void rewind
( void
)
public bool valid
( void
)
/* Inherited methods */
final public SimpleXMLElement::__construct
( string
$data
[, int $options = 0
[, bool $data_is_url = false
[, string $ns = ""
[, bool $is_prefix = false
]]]] )
public void SimpleXMLElement::addAttribute
( string
$name
[, string $value
[, string $namespace
]] )
public SimpleXMLElement SimpleXMLElement::addChild
( string
$name
[, string $value
[, string $namespace
]] )
public mixed SimpleXMLElement::asXML
([ string
$filename
] )
public SimpleXMLElement SimpleXMLElement::attributes
([ string
$ns = NULL
[, bool $is_prefix = false
]] )
public SimpleXMLElement SimpleXMLElement::children
([ string
$ns
[, bool $is_prefix = false
]] )
public int SimpleXMLElement::count
( void
)
public array SimpleXMLElement::getDocNamespaces
([ bool
$recursive = false
[, bool $from_root = true
]] )
public string SimpleXMLElement::getName
( void
)
public array SimpleXMLElement::getNamespaces
([ bool
$recursive = false
] )
public bool SimpleXMLElement::registerXPathNamespace
( string
$prefix
, string $ns
)
public string SimpleXMLElement::__toString
( void
)
public array SimpleXMLElement::xpath
( string
}$path
) |