classes/phing/filters/XincludeFilter.php
protected function process($xml)
    {
        if ($this->basedir) {
            $cwd = getcwd();
            chdir($this->basedir);
        }

        // Create and setup document.
        $xmlDom = new DomDocument();
        $xmlDom->resolveExternals = $this->resolveExternals;

        $xmlDom->loadXML($xml);

        $xmlDom->xinclude();

        if ($this->basedir) {
            chdir($cwd);
        }

        return $xmlDom->saveXML();
    }
protected function process($xml)
    {
        if ($this->basedir) {
            $cwd = getcwd();
            chdir($this->basedir);
        }

        // Create and setup document.
        $xmlDom = new DomDocument();
        $xmlDom->resolveExternals = $this->resolveExternals;

        $xmlDom->loadXML($xml);

        $xmlDom->xinclude();

        if ($this->basedir) {
            chdir($cwd);
        }

        return $xmlDom->saveXML();
    }
protected function process ( $ xml ) { if ( $ this -> basedir ) { $ cwd = getcwd ( ) ; chdir ( $ this -> basedir ) ; } // Create and setup document. $ xmlDom = new DomDocument ( ) ; $ xmlDom -> resolveExternals = $ this -> resolveExternals ; $ xmlDom -> loadXML ( $ xml ) ; $ xmlDom -> xinclude ( ) ; if ( $ this -> basedir ) { chdir ( $ cwd ) ; } return $ xmlDom -> saveXML ( ) ; }
Try to process the Xinclude transformation

@param string  XML to process.

@return string
@throws BuildException On errors
Try to process the Xinclude transformation