simplexml_load_file
Interprets an XML file into an object.
Description
object SimpleXMLElementsimplexml_load_file
stringfilename
This function will convert the well-formed XML document in the file
specified by filename to an object
of class SimpleXMLElement. If any errors occur
during file access or interpretation, the function returns &false;.
Interpret an XML document
]]>
This script will display, on success:
Example Title
...
)
]]>
At this point, you can go about using $xml->title
and any other elements.
See also: simplexml_load_string