Re: [PHP] Loading a html file using DOM XML

2004-08-29 Thread Sam Hobbs
Look at: http://simplesamples.info/Tests/PHPinfo.php That is not my local system but it is the information for the server that I will need to implement on. If anyone can give a hint of what I need to ask for to get DOM enabled there, then that will help. Or should I ask them to install PHP 5? --

Re: [PHP] Loading a html file using DOM XML

2004-08-29 Thread Sam Hobbs
Perhaps it will be easier if I just install PHP 5. If I do, then I will need to also get the hsoting company that hosts my site to install it. Hopefully that won't be a problem. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Loading a html file using DOM XML

2004-08-29 Thread Sam Hobbs
Under domxml phpinfo shows the libxml Version as 20510 and it says that HTML Support is enabled. Is that what you mean? When I say: $Document = DOMDocument::loadHTMLFile("DynamicTable.html"); print $Document->saveHTML(); It says: Fatal error: Call to undefined function: loadhtmlfile

Re: [PHP] Loading a html file using DOM XML

2004-08-29 Thread Christian Stocker
On Sun, 29 Aug 2004 06:23:53 -0700, Sam Hobbs <[EMAIL PROTECTED]> wrote: > Correction: the documentation is quite clear in saying that the "DOM > extension is the replacement for the DOM XML extension". So that is further > indication that I should use DOM not DOM XML. the domxml extension is for

Re: [PHP] Loading a html file using DOM XML

2004-08-29 Thread Sam Hobbs
Correction: the documentation is quite clear in saying that the "DOM extension is the replacement for the DOM XML extension". So that is further indication that I should use DOM not DOM XML. "Sam Hobbs" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > DOMDocument->loadHTMLFile is wha

Re: [PHP] Loading a html file using DOM XML

2004-08-29 Thread Sam Hobbs
DOMDocument->loadHTMLFile is what I was using when I was unable to get the domxml enabled. The documentation is confusing; I don't know if the DOM in PHP (which includes DOMDocument->loadHTMLFile) will replace the XML DOM, or if the XML DOM will repalce the DOM or if they are two different things a

Re: [PHP] Loading a html file using DOM XML

2004-08-29 Thread Christian Stocker
DOMXML can basically only load well-formed XML documents and does this quite well. If it doesn't work, you are doing something wrong or your XML/HTML document is not wellformed. It's that simple.. And yes, FrontPage, doesn't produce well-formed code ;) But... There is a solution, which maybe helps

Re: [PHP] Loading a html file using DOM XML

2004-08-29 Thread Sam Hobbs
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

Re: [PHP] Loading a html file using DOM XML

2004-08-29 Thread Christian Stocker
It's obviously not a well-formed XML Document... chregu On Sun, 29 Aug 2004 05:11:19 -0700, Sam Hobbs <[EMAIL PROTECTED]> wrote: > Is it possible to load a HTML file using DOM XML? > > I tried loading a HTML file using: > > $Document = domxml_open_file("DynamicTable.html"); > if (!$Docu

[PHP] Loading a html file using DOM XML

2004-08-29 Thread Sam Hobbs
Is it possible to load a HTML file using DOM XML? I tried loading a HTML file using: $Document = domxml_open_file("DynamicTable.html"); if (!$Document) { echo "Error loading the document\n"; exit; } Yet that does not work; I get the error. -- PHP General Mailing