note that asXML($file) will overwrite the file, not append to it.
![]() | SimpleXMLElement->asXML(no version information, might be only in CVS) SimpleXMLElement->asXML -- Return a well-formed XML string based on SimpleXML element说明mixed SimpleXMLElement->asXML ( [string filename] )The asXML method formats the parent object's data in XML version 1.0. 返回值If the filename isn't specified, this function returns a string on success and FALSE on error. If the parameter is specified, it returns TRUE if the file was written successfully and FALSE otherwise. 范例
asXML also works on Xpath results:
![]()
daevid at daevid dot com
31-Mar-2006 06:35
note that asXML($file) will overwrite the file, not append to it.
| ![]() | |||