Example #1
0
 function createXML($docs, $charset, $totalPages = null)
 {
     $charset = strtolower($charset);
     $xml = '';
     $xml .= '<?xml version="1.0" encoding="' . $charset . '"?>';
     $xml .= '<root>';
     $xml .= '<docinfo ' . ACloud_Sys_Core_XML::createAttribute('version', ACLOUD_XML_VERSION) . ' ' . ACloud_Sys_Core_XML::createAttribute('charset', $charset) . ' ' . ACloud_Sys_Core_XML::createAttribute('totalpages', $totalPages) . ' />';
     $xml .= '<docs>';
     $xml .= ACloud_Sys_Core_XML::buildXML($docs);
     $xml .= '</docs>';
     $xml .= "</root>";
     return $xml;
 }
Example #2
0
 function dataFlowXmlFormat($docs, $charset, $totalPages = null)
 {
     $docs = ACloud_Sys_Core_Common::convert($docs, 'UTF-8', $charset);
     require_once ACLOUD_PATH . '/system/core/sys.core.xml.php';
     return ACloud_Sys_Core_XML::createXML($docs, 'UTF-8', $totalPages);
 }