XML_sql2xml::addXmlFile – Adds a XML file


require_once "XML/sql2xml.php";

void XML_sql2xml::addXmlFile ( string $file , mixed $xpath = null )


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


  • 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.


This function can not be called statically.

General method for adding new result sets (Previous) Adds XML string (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.