PEAR Manual
Prev |  | Next

# XML_sql2xml::addXmlFile

XML_sql2xml::addXmlFile -- Adds a XML file

## Synopsis

    require_once "XML/sql2xml.php";

``void XML_sql2xml::addXmlFile` (string $file [, mixed $xpath = `NULL`])`

## Description

Adds the content of a XML file on the same level as a normal result set (mostly just below <root>).

## Parameter

- `string $file` - file name

- `mixed $xpath` - either a string with the XPath expression or an array with the keys "xpath"=>XPath expression and "root"=>tag/subtag/etc, which are the tags to be inserted before the result.

## Note

This function can not be called statically.

## See

XML_sql2xml::add()

Prev | Home | Next
XML_sql2xml::add | Up | XML_sql2xml::addXmlString