SimpleXMLInhaltsverzeichnis
Die SimpleXMLElement-KlasseEinführungStellt ein Element in einem XML-Dokument dar. KlassenbeschreibungSimpleXMLElement
class SimpleXMLElement
implements
Traversable
{
/* Methoden */
__construct
( string
$data
[, int $options
[, bool $data_is_url
[, string $ns
[, bool $is_prefix
]]]] )
void addAttribute
( string
$name
, string $value
[, string $namespace
] )
SimpleXMLElement addChild
( string
$name
[, string $value
[, string $namespace
]] )
mixed asXML
([ string
$filename
] )
SimpleXMLElement attributes
([ string
$ns
[, bool $is_prefix
]] )
SimpleXMLElement children
([ string
$ns
[, bool $is_prefix
]] )
public int count
( void
)
array getDocNamespaces
([ bool
$recursive
] )
string getName
( void
)
array getNamespaces
([ bool
$recursive
] )
bool registerXPathNamespace
( string
$prefix
, string $ns
)
public string __toString
( void
)
array xpath
( string
}$path
)Die SimpleXMLIterator-KlasseEinführungDer SimpleXMLIterator verwaltet rekursive Interation über alle Knotenpunkte eines SimpleXMLElement-Objektes. KlassenbeschreibungSimpleXMLIterator
class SimpleXMLIterator
extends
SimpleXMLElement
implements
RecursiveIterator
,
Countable
{
/* Methoden */
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
)
/* Geerbte Methoden */
__construct
( string
$data
[, int $options
[, bool $data_is_url
[, string $ns
[, bool $is_prefix
]]]] )
void addAttribute
( string
$name
, string $value
[, string $namespace
] )
SimpleXMLElement addChild
( string
$name
[, string $value
[, string $namespace
]] )
mixed asXML
([ string
$filename
] )
SimpleXMLElement attributes
([ string
$ns
[, bool $is_prefix
]] )
SimpleXMLElement children
([ string
$ns
[, bool $is_prefix
]] )
public int SimpleXMLElement::count
( void
)
array getDocNamespaces
([ bool
$recursive
] )
string getName
( void
)
array getNamespaces
([ bool
$recursive
] )
bool registerXPathNamespace
( string
$prefix
, string $ns
)
public string SimpleXMLElement::__toString
( void
)
array xpath
( string
}$path
) |