note 82475 added to domdocument.loadxml
| From: | lem at osu1 dot php dot net | Date: | Sat, 12 Apr 2008 14:57:55 +0000 |
| Subject: | note 82475 added to domdocument.loadxml | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-138234@lists.php.net to get a copy of this message | ||
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.
----
Server IP: 217.13.201.10
Probable Submitter: 88.76.56.231
----
Manual Page -- http://www.php.net/manual/en/domdocument.loadxml.php
Edit -- https://master.php.net/note/edit/82475
Del: integrated -- https://master.php.net/note/delete/82475/integrated
Del: useless -- https://master.php.net/note/delete/82475/useless
Del: bad code -- https://master.php.net/note/delete/82475/bad+code
Del: spam -- https://master.php.net/note/delete/82475/spam
Del: non-english -- https://master.php.net/note/delete/82475/non-english
Del: in docs -- https://master.php.net/note/delete/82475/in+docs
Del: other reasons-- https://master.php.net/note/delete/82475
Reject -- https://master.php.net/note/reject/82475
Search -- https://master.php.net/manage/user-notes.php