private function _xmlbody()
    {
        $dom = new DOMDocument('1.0', 'UTF-8');
        $root = $dom->createElement("tns:phpsysinfo");
        $root->setAttribute('xmlns:tns', 'http://phpsysinfo.sourceforge.net/');
        $root->setAttribute('xmlns:xsi', 'http://www.w3.org/2001/XMLSchema-instance');
        $root->setAttribute('xsi:schemaLocation', 'http://phpsysinfo.sourceforge.net/ phpsysinfo3.xsd');
        $dom->appendChild($root);
        $this->_xml = new SimpleXMLExtended(simplexml_import_dom($dom), $this->_sysinfo->getEncoding());

        $generation = $this->_xml->addChild('Generation');
        $generation->addAttribute('version', PSI_VERSION_STRING);
        $generation->addAttribute('timestamp', time());
        $options = $this->_xml->addChild('Options');
        $options->addAttribute('tempFormat', defined('PSI_TEMP_FORMAT') ? strtolower(PSI_TEMP_FORMAT) : 'c');
        $options->addAttribute('byteFormat', defined('PSI_BYTE_FORMAT') ? strtolower(PSI_BYTE_FORMAT) : 'auto_binary');
        $options->addAttribute('datetimeFormat', defined('PSI_DATETIME_FORMAT') ? strtolower(PSI_DATETIME_FORMAT) : 'utc');
        if (defined('PSI_REFRESH')) {
            $options->addAttribute('refresh',  max(intval(PSI_REFRESH), 0));
        } else {
            $options->addAttribute('refresh', 60000);
        }
        if (defined('PSI_FS_USAGE_THRESHOLD')) {
            if ((($fsut = intval(PSI_FS_USAGE_THRESHOLD)) >= 1) && ($fsut <= 99)) {
                $options->addAttribute('threshold', $fsut);
            }
        } else {
            $options->addAttribute('threshold', 90);
        }
        if (count($this->_plugins) > 0) {
            if ($this->_plugin_request) {
                $plug = $this->_xml->addChild('UsedPlugins');
                $plug->addChild('Plugin')->addAttribute('name', $this->_plugin);
            } elseif ($this->_complete_request) {
                $plug = $this->_xml->addChild('UsedPlugins');
                foreach ($this->_plugins as $plugin) {
                    $plug->addChild('Plugin')->addAttribute('name', $plugin);
                }
/*
            } else {
                $plug = $this->_xml->addChild('UnusedPlugins');
                foreach ($this->_plugins as $plugin) {
                    $plug->addChild('Plugin')->addAttribute('name', $plugin);
                }
*/
            }
        }
    }
private function _xmlbody()
    {
        $dom = new DOMDocument('1.0', 'UTF-8');
        $root = $dom->createElement("tns:phpsysinfo");
        $root->setAttribute('xmlns:tns', 'http://phpsysinfo.sourceforge.net/');
        $root->setAttribute('xmlns:xsi', 'http://www.w3.org/2001/XMLSchema-instance');
        $root->setAttribute('xsi:schemaLocation', 'http://phpsysinfo.sourceforge.net/ phpsysinfo3.xsd');
        $dom->appendChild($root);
        $this->_xml = new SimpleXMLExtended(simplexml_import_dom($dom), $this->_sysinfo->getEncoding());

        $generation = $this->_xml->addChild('Generation');
        $generation->addAttribute('version', PSI_VERSION_STRING);
        $generation->addAttribute('timestamp', time());
        $options = $this->_xml->addChild('Options');
        $options->addAttribute('tempFormat', defined('PSI_TEMP_FORMAT') ? strtolower(PSI_TEMP_FORMAT) : 'c');
        $options->addAttribute('byteFormat', defined('PSI_BYTE_FORMAT') ? strtolower(PSI_BYTE_FORMAT) : 'auto_binary');
        $options->addAttribute('datetimeFormat', defined('PSI_DATETIME_FORMAT') ? strtolower(PSI_DATETIME_FORMAT) : 'utc');
        if (defined('PSI_REFRESH')) {
            $options->addAttribute('refresh',  max(intval(PSI_REFRESH), 0));
        } else {
            $options->addAttribute('refresh', 60000);
        }
        if (defined('PSI_FS_USAGE_THRESHOLD')) {
            if ((($fsut = intval(PSI_FS_USAGE_THRESHOLD)) >= 1) && ($fsut <= 99)) {
                $options->addAttribute('threshold', $fsut);
            }
        } else {
            $options->addAttribute('threshold', 90);
        }
        if (count($this->_plugins) > 0) {
            if ($this->_plugin_request) {
                $plug = $this->_xml->addChild('UsedPlugins');
                $plug->addChild('Plugin')->addAttribute('name', $this->_plugin);
            } elseif ($this->_complete_request) {
                $plug = $this->_xml->addChild('UsedPlugins');
                foreach ($this->_plugins as $plugin) {
                    $plug->addChild('Plugin')->addAttribute('name', $plugin);
                }
/*
            } else {
                $plug = $this->_xml->addChild('UnusedPlugins');
                foreach ($this->_plugins as $plugin) {
                    $plug->addChild('Plugin')->addAttribute('name', $plugin);
                }
*/
            }
        }
    }
private function _xmlbody ( ) { $ dom = new DOMDocument ( '1.0' , 'UTF-8' ) ; $ root = $ dom -> createElement ( "tns:phpsysinfo" ) ; $ root -> setAttribute ( 'xmlns:tns' , 'http://phpsysinfo.sourceforge.net/' ) ; $ root -> setAttribute ( 'xmlns:xsi' , 'http://www.w3.org/2001/XMLSchema-instance' ) ; $ root -> setAttribute ( 'xsi:schemaLocation' , 'http://phpsysinfo.sourceforge.net/ phpsysinfo3.xsd' ) ; $ dom -> appendChild ( $ root ) ; $ this -> _xml = new SimpleXMLExtended ( simplexml_import_dom ( $ dom ) , $ this -> _sysinfo -> getEncoding ( ) ) ; $ generation = $ this -> _xml -> addChild ( 'Generation' ) ; $ generation -> addAttribute ( 'version' , PSI_VERSION_STRING ) ; $ generation -> addAttribute ( 'timestamp' , time ( ) ) ; $ options = $ this -> _xml -> addChild ( 'Options' ) ; $ options -> addAttribute ( 'tempFormat' , defined ( 'PSI_TEMP_FORMAT' ) ? strtolower ( PSI_TEMP_FORMAT ) : 'c' ) ; $ options -> addAttribute ( 'byteFormat' , defined ( 'PSI_BYTE_FORMAT' ) ? strtolower ( PSI_BYTE_FORMAT ) : 'auto_binary' ) ; $ options -> addAttribute ( 'datetimeFormat' , defined ( 'PSI_DATETIME_FORMAT' ) ? strtolower ( PSI_DATETIME_FORMAT ) : 'utc' ) ; if ( defined ( 'PSI_REFRESH' ) ) { $ options -> addAttribute ( 'refresh' , max ( intval ( PSI_REFRESH ) , 0 ) ) ; } else { $ options -> addAttribute ( 'refresh' , 60000 ) ; } if ( defined ( 'PSI_FS_USAGE_THRESHOLD' ) ) { if ( ( ( $ fsut = intval ( PSI_FS_USAGE_THRESHOLD ) ) >= 1 ) && ( $ fsut <= 99 ) ) { $ options -> addAttribute ( 'threshold' , $ fsut ) ; } } else { $ options -> addAttribute ( 'threshold' , 90 ) ; } if ( count ( $ this -> _plugins ) > 0 ) { if ( $ this -> _plugin_request ) { $ plug = $ this -> _xml -> addChild ( 'UsedPlugins' ) ; $ plug -> addChild ( 'Plugin' ) -> addAttribute ( 'name' , $ this -> _plugin ) ; } elseif ( $ this -> _complete_request ) { $ plug = $ this -> _xml -> addChild ( 'UsedPlugins' ) ; foreach ( $ this -> _plugins as $ plugin ) { $ plug -> addChild ( 'Plugin' ) -> addAttribute ( 'name' , $ plugin ) ; } /*
            } else {
                $plug = $this->_xml->addChild('UnusedPlugins');
                foreach ($this->_plugins as $plugin) {
                    $plug->addChild('Plugin')->addAttribute('name', $plugin);
                }
*/ } } }
build the xml structure where the content can be inserted

@return void
build the xml structure where the content can be inserted