When to use DOMDocument->save() OR saveXML() ?
Posted: Fri Dec 15, 2006 12:05 am
Hi folks,
I am using DOMDocument to create a xml file...but I don't quiet understand about the difference between the DOMDocument->save() and DOMDocument->saveXML()....
From what I have read in the documentation about these I only noted the difference that the saveXML() method doesn't output to the file, while the save() method does output a file..., please correct me if I am wrong...
http://www.php.net/manual/en/function.d ... t-save.php
http://www.php.net/manual/en/function.d ... avexml.php
So, which one is better to use ??? Or should I use both ?
Many thanks,
Christian
I am using DOMDocument to create a xml file...but I don't quiet understand about the difference between the DOMDocument->save() and DOMDocument->saveXML()....
From what I have read in the documentation about these I only noted the difference that the saveXML() method doesn't output to the file, while the save() method does output a file..., please correct me if I am wrong...
http://www.php.net/manual/en/function.d ... t-save.php
http://www.php.net/manual/en/function.d ... avexml.php
So, which one is better to use ??? Or should I use both ?
Many thanks,
Christian