Class constructor.
XMLUserImporter
__construct
(string $xmlfile)
-
string
$xmlfile: XML file name
Class destructor;
void
__destruct
()
Sets the end element handler function for the XML parser parser.end_element_handler.
void
endElementHandler
(resource $parser, string $name)
-
resource
$parser: The first parameter, parser, is a reference to the XML parser calling the handler.
-
string
$name: The second parameter, name, contains the name of the element for which this handler is called. If case-folding is in effect for this parser, the element name will be in uppercase letters.
Sets the character data handler function for the XML parser parser.handler.
void
segContentHandler
(resource $parser, string $data)
-
resource
$parser: The first parameter, parser, is a reference to the XML parser calling the handler.
-
string
$data: The second parameter, data, contains the character data as a string.
Sets the start element handler function for the XML parser parser.start_element_handler.
void
startElementHandler
(resource $parser, string $name, array $attribs)
-
resource
$parser: The first parameter, parser, is a reference to the XML parser calling the handler.
-
string
$name: The second parameter, name, contains the name of the element for which this handler is called. If case-folding is in effect for this parser, the element name will be in uppercase letters.
-
array
$attribs: The third parameter, attribs, contains an associative array with the element's attributes (if any). The keys of this array are the attribute names, the values are the attribute values. Attribute names are case-folded on the same criteria as element names. Attribute values are not case-folded. The original order of the attributes can be retrieved by walking through attribs the normal way, using each(). The first key in the array was the first attribute, and so on.