I don't know much about the ->saveXML() method but after reading the PHP manual why can't you just do something like this:
$xhtml = $dom->saveXML(); // strip out the <?xml and ?> $html = str_replace("<?xml", "", $html); $html = str_replace("?>", "", $html); Would that even work? On 1/23/06 2:52 PM, "Chris" <[EMAIL PROTECTED]> wrote: > Steve Clay wrote: > >> Monday, January 23, 2006, 1:35:13 PM, Chris wrote: >> >> >>> the ->saveHTML() method ... outputs as `<option selected>` >>> I need my output HTML to conform to XHTML strict. >>> >>> >> >> Since XHTML is XML, try ->saveXML()? >> >> Steve >> >> > I've tried that, and it suits my purposes except for the fact that it > always outputs the <?xml ?> tag in the front, which I can't have. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php