I load a file domxml_open_file($filePath) and then use xpath to get
content from certain elements out of this document.
It works fina as long as there are no special chars in the xhtml file,
html entities like ü etc.
searching the web I came across this article from the list
so I changed my code to use
but this seems not to work for xhtml files with the regular html dtd
my documents start like
<?xml version="1.0" encoding="ISO-8859-1" ?>
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
So what happens?
When I turn on the validating Apache takes about 2 minutes to load the
page (it tries to load the dtd?) and then I get the $error
Array (  => Array ( [line] => 3 [col] => 26 [directory] => . [file]
=> ./content.html [errormessage] => Validation failed: no DTD found ! )
 => Array ( [errormessage] => Entity 'uuml' not defined [nodename] =>
h2 [line] => 9 [col] => 72 [directory] => . [file] => ./content.html ) )
"no DTD found"
So, question: does this work for xhtml at all? What yould I need to
change to make it work?
Jens Ansorg <email@example.com>