# Class XmlFileLoader

  Symfony\Component\DependencyInjection\Loader\FileLoader
  Thelia\Core\DependencyInjection\Loader\XmlFileLoader

Namespace: Thelia\Core\DependencyInjection\Loader
Located at core/lib/Thelia/Core/DependencyInjection/Loader/XmlFileLoader.php

Methods summary
`public` | # `load( mixed $file, string $type = null )` Loads an XML file. Loads an XML file. #### Parameters $file `mixed` $file The resource $type `string` $type The resource type
`protected` | # `parseParameters( Symfony\Component\DependencyInjection\SimpleXMLElement $xml )` Parses parameters Parses parameters #### Parameters $xml `Symfony\Component\DependencyInjection\SimpleXMLElement` $xml
`protected` | # `parseLoops( Symfony\Component\DependencyInjection\SimpleXMLElement $xml )` parse Loops property #### Parameters $xml `Symfony\Component\DependencyInjection\SimpleXMLElement` $xml
`protected` | # `parseFilters( Symfony\Component\DependencyInjection\SimpleXMLElement $xml )` parse Filters property parse Filters property #### Parameters $xml `Symfony\Component\DependencyInjection\SimpleXMLElement` $xml
`protected` | # `parseBaseParams( Symfony\Component\DependencyInjection\SimpleXMLElement $xml )` parse BaseParams property parse BaseParams property #### Parameters $xml `Symfony\Component\DependencyInjection\SimpleXMLElement` $xml
`protected` | # `parseTestLoops( Symfony\Component\DependencyInjection\SimpleXMLElement $xml )` parse testLoops property parse testLoops property #### Parameters $xml `Symfony\Component\DependencyInjection\SimpleXMLElement` $xml
`protected` | # `parseDefinitions( Symfony\Component\DependencyInjection\SimpleXMLElement $xml, string $file )` Parses multiple definitions Parses multiple definitions #### Parameters $xml `Symfony\Component\DependencyInjection\SimpleXMLElement` $xml $file `string` $file
`protected` | # `parseDefinition( string $id, Symfony\Component\DependencyInjection\SimpleXMLElement $service, string $file )` Parses an individual Definition Parses an individual Definition #### Parameters $id `string` $id $service `Symfony\Component\DependencyInjection\SimpleXMLElement` $service $file `string` $file
`protected Symfony\Component\DependencyInjection\SimpleXMLElement` | # `parseFile( string $file )` Parses a XML file. Parses a XML file. #### Parameters $file `string` $file Path to a file #### Returns `Symfony\Component\DependencyInjection\SimpleXMLElement` #### Throws `Symfony\Component\DependencyInjection\Exception\InvalidArgumentException` When loading of XML file returns error
`public Boolean` | # `validateSchema( DOMDocument $dom )` Validates a documents XML schema. Validates a documents XML schema. #### Parameters $dom `DOMDocument` $dom #### Returns `Boolean` #### Throws `Symfony\Component\DependencyInjection\Exception\RuntimeException` When extension references a non-existent XSD file
`public Boolean` | # `supports( mixed $resource, string $type = null )` Returns true if this class supports the given resource. Returns true if this class supports the given resource. #### Parameters $resource `mixed` $resource A resource $type `string` $type The resource type #### Returns `Boolean` true if this class supports the given resource, false otherwise