XMLReader::moveToAttribute

(PHP 5 >= 5.1.0, PHP 7) Move cursor to a named attribute public bool XMLReader::moveToAttribute ( string $name ) Positions cursor on the named attribute. Parameters: name The name of the attribute. Returns: Returns TRUE on success or FALSE on failure. See also:

XMLReader::lookupNamespace

(PHP 5 >= 5.1.0, PHP 7) Lookup namespace for a prefix public string XMLReader::lookupNamespace ( string $prefix ) Lookup in scope namespace for a given prefix. Parameters: prefix String containing the prefix. Returns: Returns TRUE on success or FALSE on failure.

XMLReader::isValid

(PHP 5 >= 5.1.0, PHP 7) Indicates if the parsed document is valid public bool XMLReader::isValid ( void ) Returns a boolean indicating if the document being parsed is currently valid. Returns: Returns TRUE on success or FALSE on failure. Notes: This checks the current node, not the entire document. Examples:

XMLReader::getAttribute

(PHP 5 >= 5.1.0, PHP 7) Get the value of a named attribute public string XMLReader::getAttribute ( string $name ) Returns the value of a named attribute or NULL if the attribute does not exist or not positioned on an element node. Parameters: name The name of the attribute. Returns: The value of the attribute, or NULL if no attribute with the

XMLReader::getParserProperty

(PHP 5 >= 5.1.0, PHP 7) Indicates if specified property has been set public bool XMLReader::getParserProperty ( int $property ) Indicates if specified property has been set. Parameters: property One of the parser option constants. Returns: Returns TRUE on success or FALSE on failure.

XMLReader::getAttributeNo

(PHP 5 >= 5.1.0, PHP 7) Get the value of an attribute by index public string XMLReader::getAttributeNo ( int $index ) Returns the value of an attribute based on its position or an empty string if attribute does not exist or not positioned on an element node. Parameters: index The position of the attribute. Returns: The value of the attribute,

XMLReader::getAttributeNs

(PHP 5 >= 5.1.0, PHP 7) Get the value of an attribute by localname and URI public string XMLReader::getAttributeNs ( string $localName, string $namespaceURI ) Returns the value of an attribute by name and namespace URI or an empty string if attribute does not exist or not positioned on an element node. Parameters: localName The local name. namesp

XMLReader::close

(PHP 5 >= 5.1.0, PHP 7) Close the XMLReader input public bool XMLReader::close ( void ) Closes the input the XMLReader object is currently parsing. Returns: Returns TRUE on success or FALSE on failure. See also: XMLReader::open() - XMLReader::xml() -

XMLReader::expand

(PHP 5 >= 5.1.0, PHP 7) Returns a copy of the current node as a DOM object public DOMNode XMLReader::expand ([ DOMNode $basenode ] ) This method copies the current node and returns the appropriate DOM object. Parameters: basenode A DOMNode defining the target DOMDocument for the created DOM object. Returns: The resulting DOMNode or FALSE on er

xml_set_processing_instruction_handler

(PHP 4, PHP 5, PHP 7) Set up processing instruction (PI) handler bool xml_set_processing_instruction_handler ( resource $parser, callable $handler ) Sets the processing instruction (PI) handler function for the XML parser parser. A processing instruction has the following format: <? target data?> ?> Parameters: parser A reference to the XML parser