> Language (API)";
$PAGE_SHOWBACKINDEX = true;
require '../header.inc.php';
$dom = @domxml_open_file("API/{$_GET['name']}.xml");
$root = $dom->document_element();
$value = array();
$child = $root->first_child();
while ($child) {
$tag = $child->node_name();
if (($tag == 'example') || ($tag == 'parameter')) {
if (!isset($value[$tag])) {
$value[$tag] = array();
}
$subvalue = array();
$gchild = $child->first_child();
while ($gchild) {
$gtag = $gchild->node_name();
$content = trim($gchild->get_content());
if ($content != "") {
$subvalue[$gtag] = $content;
}
$gchild = $gchild->next_sibling();
}
$value[$tag][] = $subvalue;
} else if ($tag[0] == '#') {
//// skip
} else {
$content = trim($child->get_content());
if ($content != "") {
$value[$tag] = $content;
}
}
$child = $child->next_sibling();
}
?>