chump2877
03-07-2007, 04:41 AM
With the DOM XML (http://us2.php.net/manual/en/ref.domxml.php) or DOM (http://us2.php.net/manual/en/ref.dom.php) functions, are you able to parse X/HTML documents as well as regular XML files? I've used these functions before, but only to read XML files.
Alternatively, can you create a DOM object from a string variable? Or do you have to open up and read a file (with the provided methods) before you can create a DOM object?
I did some poking around in the PHP manual and couldn't find answers to these questions.....Thanks.
Alternatively, can you create a DOM object from a string variable? Or do you have to open up and read a file (with the provided methods) before you can create a DOM object?
I did some poking around in the PHP manual and couldn't find answers to these questions.....Thanks.