Re: [PHP] DOMDocument->saveXML()

2006-09-18 Thread Chris Boget
Click on one of th edom methods... when you get to the details page for that method, see the left navigation menu, at the very top is a link to the class details which contains information about the properties: http://us3.php.net/manual/en/ref.dom.php Excellent. Thank you very much! :) thnx, C

Re: [PHP] DOMDocument->saveXML()

2006-09-18 Thread Robert Cummings
On Mon, 2006-09-18 at 20:33 -0400, Chris Boget wrote: > > Why? documentElement property works just fine and is much more flexible. > > Where can you find a list of properties for the object? I don't see > anything like > this in the documentation. Doing a search: > > http://us3.php.net/manual-

Re: [PHP] DOMDocument->saveXML()

2006-09-18 Thread Chris Boget
Why? documentElement property works just fine and is much more flexible. Where can you find a list of properties for the object? I don't see anything like this in the documentation. Doing a search: http://us3.php.net/manual-lookup.php?pattern=DOMDocument&lang=en only returns the methods.

Re: [PHP] DOMDocument->saveXML()

2006-09-18 Thread Rob
Chris Boget wrote: Perhaps you missed my reply. If you pass the root node then you get the entire document without the XML declaration. That's both elegant and built-in. In the future there will be an save option to perform this. This was only made possible in recent libxml releases so has n

Re: [PHP] DOMDocument->saveXML()

2006-09-18 Thread Chris Boget
Perhaps you missed my reply. If you pass the root node then you get the entire document without the XML declaration. That's both elegant and built-in. I didn't miss it. But you have to pass in the root DomNode object. The only way to get it is by doing the following: $nodeList = $doc->getE

Re: [PHP] DOMDocument->saveXML()

2006-09-18 Thread Tom Atkinson
Perhaps you missed my reply. http://www.php.net/manual/en/function.dom-domdocument-savexml.php The first parameter to DOMDocument->saveXML() is described: "Use this parameter to output only a specific node without XML declaration rather than the entire document." If you pass the root node th

Re: [PHP] DOMDocument->saveXML()

2006-09-18 Thread Chris Boget
Would it be possible to point to the relevant page in the documentation that discusses how to do this? If there is nothing builtin to do it, how tricky could it be to strip off the first line after you saved it?... Not tricky at all. "Crude, but effective, Captain" -- Spock Exactly. I was

Re: [PHP] DOMDocument->saveXML()

2006-09-18 Thread Richard Lynch
On Sun, September 17, 2006 3:48 pm, Chris Boget wrote: > Would it be possible to point to the relevant page in the > documentation that > discusses how to do this? If there is nothing builtin to do it, how tricky could it be to strip off the first line after you saved it?... "Crude, but effective

[PHP] DOMDocument->saveXML()

2006-09-17 Thread Chris Boget
I looked all through the documentation but was unable to find out if this was possible and, if so, how. When you call ->saveXML(), it prints out the XML declaration alont with the structure of the document. Is there any way to suppress that? I'm trying to print out extra text (in the form o