Source for file FileXML.php
Documentation is available at FileXML.php
* Load FluentDOM from local XML file
* @version $Id: FileXML.php 431 2010-03-29 20:42:04Z subjective $
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
* @copyright Copyright (c) 2009 Bastian Feder, Thomas Weinert
require_once(dirname(__FILE__ ). '/../Loader.php');
* Load FluentDOM from XML file
* load DOMDocument from local XML file
* @param string $source filename
* @param string $contentType
* @return DOMDocument|FALSE
public function load($source, $contentType) {
FALSE === strpos($source, '<') &&
$contentType == 'text/xml') {
throw new InvalidArgumentException('File not found: '. $source);
$dom = new DOMDocument();
|