XML node methods

getNode

Since the DOMIT! XML parser sits underneath DOMIT! RSS you have available all of the standard XML nodes and methods. You may thus never need to use these methods for elements defined by the RSS specification -- the DOMIT! RSS API should suffice.

However, the XML node underlying any simple RSS element or complex RSS element can be accessed using the getNode method.

The following example collects all dc:creator nodes in the document:

$channelNode =& $channelElement->getNode();
$authors = $channelNode->getElementsByTagName('dc:creator');

getDocument

The getDocument method is similar to the getNode method. It returns a reference to the underlying XML document:

$xmldoc =& $rssdoc->getDocument();
echo $xmldoc->getDOMImplementation();


Documentation generated by ClassyDoc, using the DOMIT! and SAXY parsers.
Please visit Engage Interactive to download free copies.