Class Auth_Yadis_domxml
This concrete implementation of Auth_Yadis_XMLParser implements
the appropriate API for the 'domxml' extension which is typically
packaged with PHP 4. This class will be used whenever the 'domxml'
extension is detected. See the Auth_Yadis_XMLParser class for
details on this class's methods.
-
Auth_Yadis_XMLParser
-
Auth_Yadis_domxml
Methods summary
public
|
|
public
boolean
|
#
setXML( string $xml_string )
Set this parser object's XML payload. This should be
overridden by subclasses.
Set this parser object's XML payload. This should be
overridden by subclasses.
Parameters
- $xml_string
The XML string to pass to this
object's XML parser.
Returns
boolean $result True if the initialization succeeded;
false otherwise.
Overrides
|
public
boolean
|
#
registerNamespace( string $prefix, string $uri )
Register a namespace with the XML parser. This should be
overridden by subclasses.
Register a namespace with the XML parser. This should be
overridden by subclasses.
Parameters
- $prefix
The namespace prefix to appear in XML tag
names.
- $uri
The namespace URI to be used to identify the
namespace in the XML.
Returns
boolean $result True if the registration succeeded;
false otherwise.
Overrides
|
public
array
&
|
#
evalXPath( string $xpath, mixed $node = null )
Evaluate an XPath expression and return the resulting node
list. This should be overridden by subclasses.
Evaluate an XPath expression and return the resulting node
list. This should be overridden by subclasses.
Parameters
- $xpath
- The XPath expression to be evaluated.
- $node
A node object resulting from a previous
evalXPath call. This node, if specified, provides the context
for the evaluation of this xpath expression.
Returns
array $node_list An array of matching opaque node
objects to be used with other methods of this parser class.
Overrides
|
public
string
|
#
content( mixed $node )
Return the textual content of a specified node.
Return the textual content of a specified node.
Parameters
- $node
A node object from a previous call to
$this->evalXPath().
Returns
string $content The content of this node.
Overrides
|
public
array
|
#
attributes( mixed $node )
Return the attributes of a specified node.
Return the attributes of a specified node.
Parameters
- $node
A node object from a previous call to
$this->evalXPath().
Returns
array $attrs An array mapping attribute names to
values.
Overrides
|