Hallo Thomas.
ich möchte nicht den Prefix (z. B. "xhtml") bekommen, sondern den Namensraum "http://www.w3.org/1999/xhtml".
Dann nutzt du die namespaceURI–Eigenschaft des DOMNode–Objektes.
$dom = domxml_open_mem($XML);
$xpath = $dom->xpath_new_context();
Ich sehe gerade, dass du von DOM XML sprichst, während ich mich auf das neue DOM beziehe. Steht dir letzteres auch zur Verfügung?
Einen schönen Montag noch.
Gruß, Mathias
--
sh:( fo:} ch:? rl:( br: n4:~ ie:{ mo:| va:) de:> zu:} fl:( ss:) ls:[ js:|
„It is required that HTML be a common language between all platforms. This implies no device-specific markup, or anything which requires control over fonts or colors, for example. This is in keeping with the SGML ideal.“
[HTML Design Constraints: Logical Markup]
sh:( fo:} ch:? rl:( br: n4:~ ie:{ mo:| va:) de:> zu:} fl:( ss:) ls:[ js:|
„It is required that HTML be a common language between all platforms. This implies no device-specific markup, or anything which requires control over fonts or colors, for example. This is in keeping with the SGML ideal.“
[HTML Design Constraints: Logical Markup]