Re: Loading a html file using DOM XML

From: Date: Sun, 29 Aug 2004 12:56:51 +0000
Subject: Re: Loading a html file using DOM XML
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-195069@lists.php.net to get a copy of this message
I don't want a XML document! I need a HTML document. Are you sure that that is the only possible explanation? I think not, and if not, then it is not accurate to say that that is the obvious answer. I did try changing the extension from "html" to "XML" and loading that directly into IE. I did get errors. When I fixed the errors, the document loaded into IE, but of course it was shown as-is. That is not what I need; I need the HTML to be processed (formatted). When I load the corrected document in using domxml_open_file, it still does not load, regardlous of whether the extension is xml or html. So your answer is rather cryptic. I need to load a file that can be created and edited using a WYSIWYG editer, such as FrontPage. Then I need to modify it (to do things such as fill in a table) using the DOM and then show that. Perhaps the XML DOM is not capable of doing that then saying that the problem is that it is not well-formed is a minor detail and the answer is that I need HTML DOM functions instead of XML DOM. In other words, perhaps PHP cannot do what I need. "Christian Stocker" <chregu@gmail.com> wrote in message news:49373ab704082905387f0c9f49@mail.gmail.com... > It's obviously not a well-formed XML Document...

« previous php.general (#195069) next »