note 82475 deleted from domdocument.loadxml by nlopess
| From: | nlopess@php.net | Date: | Sat, 12 Apr 2008 22:15:55 +0000 |
| Subject: | note 82475 deleted from domdocument.loadxml by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-138245@lists.php.net to get a copy of this message | ||
Note Submitter: lem
----
How can I make DOMDocument::loadXML() or another function parse sluggish XHTML?
For instance, I want
* self-made tags like <ww>..</ww> or whatever. They are the reason why I can't use
DOMDocument::loadHTML()
* old-style html like <br> and <input> (instead of <br/> and <input/>)
So, the typical material that designers produce, and that webbrowsers understand with no complaint,
but that makes headaches both to the XML parser and the HTML parser.
Any ideas?
I want to create an engine that puts the buffered page in a DOM tree, does some text replacements
(language-specific text), and finally spits out the modified page as valid XHTML.