PEAR Manual
Prev |  | Next

# XML_RDDL::parseRDDL()

XML_RDDL::parseRDDL() -- parse a document that contains RDDL resources

## Synopsis

    require_once 'XML/RDDL.php';

``boolean XML_RDDL::parseRDDL` (string $input [, boolean $isFile = true])`

## Description

Parses an XML or XHTML document that contains RDDL resources and stores information about them for retrieval by the other methods.

## Parameter

- `string $input` - input to parse, either a string or a file. If it's a file, you have to set $isFile to true.

- `boolean $isFile` - flag to indicate whether the $input parameter should be treated as a filename.

## Return value

Returns `TRUE` on success, PEAR_Error on failure.

## Note

This function can not be called statically.

Prev | Home | Next
XML_RDDL::XML_RDDL() | Up | XML_RDDL::getAllResources()