Support Joomla!

references:joomla.framework:application:japplicationhelper-parsexmlinstallfile

Table of Contents

parseXMLInstallFile

API Package Subpackage Class Method Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage Application Class JApplicationHelper Method parseXMLInstallFile Reference parseXMLInstallFile() Never Work in Progress

Parses the XML file specified by the $path parameter and returns it in an object.

Syntax

void parseXMLInstallFile ( $path )

$path string is a string containing the path to the XML install file to parse.

Examples

The following code:

Example

print_r( JApplicationHelper::parseXMLInstallFile( JApplicationHelper::getPath( 'com_xml', 'com_newsfeeds' ) ) );

might produce

Result

Array
(
    [name] => Newsfeeds
    [type] => component
    [creationdate] => April 2006
    [author] => Joomla! Project
    [copyright] => (C) 2005 - 2006 Open Source Matters. All rights reserved.
    [authorEmail] => admin@joomla.org
    [authorUrl] => www.joomla.org
    [version] => 1.5.0
    [description] => This component manages RSS/RDF newsfeeds
    [group] => 
)

 
references/joomla.framework/application/japplicationhelper-parsexmlinstallfile.txt (781 views) · Last modified: 2007/08/15 14:50