F.33. Simple XML

FunctionReturnsDescription
simplexml_load_file(string filename)
simplemxml_elementLoads a filename and returns a simplexml_element object to allow for processing.
simplexml_load_string(string data)
simplemxml_elementLoads a string and returns a simplexml_element object to allow for processing.
simplexml_import_dom(domNode node)
simplemxml_elementGets a simplexml_element object from dom to allow for processing.

Get Web Standards Programmer's Reference: HTML, CSS, JavaScript®, Perl, Python®, and PHP now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.