PEAR Manual
Prev |  | Next

# XML_sql2xml::getXMLObject

XML_sql2xml::getXMLObject -- return an XML DomDocument object

## Synopsis

    require_once "XML/sql2xml.php";

``Object XML_sql2xml::getXMLObject` ([mixed $result = `NULL`])`

## Description

Returns an XML DomDocument object with a XML representation of the result sets. The result set can be directly provided here, or if you need more than one in your XML, then you have to provide each of them with add() before you call getXMLObject(), but the last one can also be provided here.

## Parameter

- `mixed $result` - a DB_result object from a DB query

## Return value

`Object` - DomDocument object

## Note

This function can not be called statically.

Prev | Home | Next
XML_sql2xml::getXML | Up | XML_sql2xml::setOptions