hi,
Nun möchte ich auf die einzelnen Knoten zugrifen, bekomme aber Probleme:
var_dump($xml->body):
object(SimpleXMLElement)#11 (1) { ["body.head"]
Ja, da der Punkt nun mal in PHP der Verkettungsioperator ist, geht $xyz->body.head hier natürlich nicht.
Man könnte natürlich
$elementName = 'body.head';
$xyz->$elementName
nutzen - oder auch einfach $xyz->{'body.head'}
gruß,
wahsaga
--
/voodoo.css:
#GeorgeWBush { position:absolute; bottom:-6ft; }
/voodoo.css:
#GeorgeWBush { position:absolute; bottom:-6ft; }