Re: [PHP] Error with DOMDocument->saveXML()

2005-09-29 Thread Stephen Leaf
On Thursday 29 September 2005 12:26 pm, Stephen Leaf wrote: I have figured it out! My guess couldn't have been more _wrong_. Here is all you need to recreate the Error. There is only 1 value that is off. in the DOMDocument I gave it the wrong encoding type. uft-8 .. it should read utf-8. Interesti

Re: [PHP] Error with DOMDocument->saveXML()

2005-09-29 Thread Stephen Leaf
On Thursday 29 September 2005 09:37 am, Scott Fletcher wrote: > It is just that not many work with XML often enough to know well enough how > to use it. I noticed many folks have different way of using XML that > doesn't best fit our need. It is a newer idea of how to do things. > > I have this s

Re: [PHP] Error with DOMDocument->saveXML()

2005-09-29 Thread Scott Fletcher
It is just that not many work with XML often enough to know well enough how to use it. I noticed many folks have different way of using XML that doesn't best fit our need. I have this same problem as well. So, you're not the only one here as I have this same problem as well. "Stephen Leaf" <[EM

Re: [PHP] Error with DOMDocument->saveXML()

2005-09-29 Thread Stephen Leaf
On Thursday 29 September 2005 04:20 am, Andy Pieters wrote: > Hi > > > Fatal error: Method Document::__toString() must return a string > > value in /srv/www/localhost/htdocs/db/index.php on line > > 140 > > That's just what it says, check your program flow. > > You overrided the tostring function

Re: [PHP] Error with DOMDocument->saveXML()

2005-09-29 Thread Andy Pieters
Hi > Fatal error: Method Document::__toString() must return a string > value in /srv/www/localhost/htdocs/db/index.php on line > 140 That's just what it says, check your program flow. You overrided the tostring function and somewhere in that new function you jump out of it because of a flag

[PHP] Error with DOMDocument->saveXML()

2005-09-28 Thread Stephen Leaf
Ok how I have things set up is I have a Document Object which when instantiated creates a root element and adds it to the DOM object. After that all population of this node is done on the requested page. When I'm done populating I output my header()'s and then echo my Document Object. I've overr