public function load($file, $type = null)
    {
        $content = XmlToArrayConverter::convert($this->getPath($file));
        $content = $this->resolveParams($content); //Resolve parameter placeholders (%name%)

        return $content;
    }
public function load($file, $type = null)
    {
        $content = XmlToArrayConverter::convert($this->getPath($file));
        $content = $this->resolveParams($content); //Resolve parameter placeholders (%name%)

        return $content;
    }
public function load ( $ file , $ type = null ) { $ content = XmlToArrayConverter :: convert ( $ this -> getPath ( $ file ) ) ; $ content = $ this -> resolveParams ( $ content ) ; //Resolve parameter placeholders (%name%) return $ content ; }
Loads an Xml file.

@param mixed  $file The resource
@param string $type The resource type

@return array

@throws \InvalidArgumentException                                if configuration file not found
@throws \Propel\Common\Config\Exception\InputOutputException     if configuration file is not readable
@throws \Propel\Common\Config\Exception\InvalidArgumentException if invalid xml file
@throws \Propel\Common\Config\Exception\XmlParseException        if something went wrong while parsing xml file
Loads an Xml file .