Table of Contents

parseXMLLangMetaFile

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

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

Syntax

void parseXMLLangMetaFile ( $path )

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

Examples

The following code parses the English (GB) language file:

Example

print_r( JApplicationHelper::parseXMLLangMetaFile( JPATH_SITE . '/language/en-GB/en-GB.xml' ) );

which might output

Result

Array
(
    [name] => English(United Kingdom)
    [type] => 
    [creationdate] => 2005-10-30
    [author] => Joomla! Project
    [copyright] => (C) 2005 Open Source Matters. All rights reserved.
    [authorEmail] => admin@joomla.org
    [authorUrl] => www.joomla.org
    [version] => 1.5.0
    [description] => 
    [group] => 
)