hmm, I am to much of a newbie.
tried this
$doc = domxml_open_file("specials.xml");
$root = $doc->document_element();
$childs = $root->child_nodes();
foreach ($childs as $value) {
echo $value->attributes() ." ".$value->get_content()."<br>";
echo 'Attributes of ' . $value->node_name() . "\n";
}
//$attrs = $childs->attributes();
foreach ($attrs as $attribute) {
echo ' - ' . $attribute->name . ' : ' . $attribute->value . "\n";
}
Gets me an out put like
Attributes of #text Array Offer New york Air west 399 none
Attributes of special
Attributes of #text Array Offer Berlin Air west 299 none
Attributes of special
Attributes of #text
Warning: Invalid argument supplied for foreach() in /../test/deleteSpecialXML.php on line 14
[code]
hmm