references:joomla.framework:jfactory-getxmlparserTable of Contents
getXMLParser
This method creates an XML document. It will instantiate an object depending on the specified type. Syntaxobject &getXMLParser ( $type, $options )
Recognized array elements:
ExamplesExample $xmldoc =& JFactory::getXMLParser( 'Simple' ); $xmlstring = "<product> <name>Telephone</name> <price>$29.95</price> <manufacturer>CAMNAI Manufacturing Company</manufacturer> </product> "; if ( $xmldoc->loadString( $xmlstring ) ) { echo "String successfully loaded!"; } else { echo "Something didn't work!"; } might produce: Result String successfully loaded! |


