DiDom\Document::loadXmlFile PHP Method

loadXmlFile() public method

Load XML from a file.
public loadXmlFile ( string $filepath, integer $options ) : Document
$filepath string The path to the XML file
$options integer Additional parameters
return Document
    public function loadXmlFile($filepath, $options = 0)
    {
        return $this->load($filepath, true, 'xml', $options);
    }

Usage Example

Beispiel #1
0
 /**
  * @expectedException InvalidArgumentException
  */
 public function testLoadXmlFileWithInvalidArgument()
 {
     $document = new Document();
     $document->loadXmlFile(array('foo'));
 }