xml_set_element_handler
xml_set_element_handler
Set up start and end element handlers
true **xml_set_element_handler** XMLParser $parser $start_handler $end_handler
Sets the element handler functions for the XML .
parser
is called when a new XML element is
opened. is called when an XML element
is closed.
start_handler``end_handler
start_handler
The signature of the handler must be:
```php
void **** XMLParser $parser string $name array $attributes
`name`
Contains the name of the element for which this handler is called.
If is in effect
for this parser, the element name will be in uppercase letters.
case-folding
`attributes`
An associative array with the element's attributes.
The array is empty if the element has no attributes.
The keys of this array are the attribute names,
the values are the attribute values.
Attribute names are
on the same criteria as element names.
Attribute values are case-folded.
case-folded*not*
The order in which is traversed
is identical to the order in which the attributes were declared.
`attributes`
`end_handler`
The signature of the handler must be:
```php
void **** XMLParser $parser string $name
name
Contains the name of the element for which this handler is called.
If is in effect
for this parser, the element name will be in uppercase letters.
case-folding
return.true.always