Source for file SimpleXMLElement.php
Documentation is available at SimpleXMLElement.php
* Load FluentDOM from SimpleXMLElement
* @version $Id: SimpleXMLElement.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 SimpleXMLElement
* Select DOMNode representation of an existing SimpleXMLElement
* @param SimpleXMLElement $source
* @param string $contentType
* @return array(DOMDocument,DOMNode)|FALSE
public function load($source, $contentType) {
if ($source instanceof SimpleXMLElement) {
return array($node->ownerDocument, array($node));
|