private function loadXInclude(XInclude $xinclude, $filePath){
        //load DOMDocument
        $xml = new DOMDocument();
        $loadSuccess = $xml->load($filePath);
        $node = $xml->documentElement;
        if($loadSuccess && !is_null($node)){
            //parse the href content
            $parser = new ParserFactory($xml);
            $parser->loadContainerStatic($node, $xinclude->getBody());
        }else{
            throw new XIncludeException('Cannot load the XInclude DOM XML', $xinclude);
        }
    }
private function loadXInclude(XInclude $xinclude, $filePath){
        //load DOMDocument
        $xml = new DOMDocument();
        $loadSuccess = $xml->load($filePath);
        $node = $xml->documentElement;
        if($loadSuccess && !is_null($node)){
            //parse the href content
            $parser = new ParserFactory($xml);
            $parser->loadContainerStatic($node, $xinclude->getBody());
        }else{
            throw new XIncludeException('Cannot load the XInclude DOM XML', $xinclude);
        }
    }
private function loadXInclude ( XInclude $ xinclude , $ filePath ) { //load DOMDocument $ xml = new DOMDocument ( ) ; $ loadSuccess = $ xml -> load ( $ filePath ) ; $ node = $ xml -> documentElement ; if ( $ loadSuccess && ! is_null ( $ node ) ) { //parse the href content $ parser = new ParserFactory ( $ xml ) ; $ parser -> loadContainerStatic ( $ node , $ xinclude -> getBody ( ) ) ; } else { throw new XIncludeException ( 'Cannot load the XInclude DOM XML' , $ xinclude ) ; } }
load an xml string into the body of the XInclude

@param \oat\taoQtiItem\model\qti\XInclude $xinclude
@param string $filePath
@throws XIncludeException
load an xml string into the body of the XInclude