loadHTMLFile("html/main.html"); // Seleziona la voce di menu $menu = $html->getElementById("mainmenu"); $menu->getElementsByTagName("a")->item(0)->setAttribute("class", "sel"); // Contenuti Home Page $cnt = $html->getElementById("schema"); $content = $html->createDocumentFragment(); $content->appendXML(file_get_contents("html/home.html")); $cnt->appendChild($content); echo $html->saveHTML(); ?>