Manuál PHP | ||
---|---|---|
PÅ™edcházejÃcà | Dalšà |
SimpleXMLElement->asXML()
(no version information, might be only in CVS)
SimpleXMLElement->asXML() -- Return a well-formed XML string based on SimpleXML elementPopis
class SimpleXMLElement {mixed asXML ( [string filename] )
}
The asXML method formats the parent object's data in XML version 1.0.
Seznam parametrů
filename
If specified, the function writes the data to the file rather than returning it.
Návratové hodnoty
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.
PÅ™Ãklady
asXML also works on Xpath results:
PÅ™Ãklad 2. Using asXML() on Xpath results
|
PÅ™edcházejÃcà | Domů | Dalšà |
SimpleXMLElement->addChild() | Nahoru |