WAP::wbxml - Binarization of XML file
use XML::DOM; use WAP::wbxml; $parser = new XML::DOM::Parser; $doc_xml = $parser->parsefile($infile); $rules = WAP::wbxml::WbRules::Load(); $wbxml = new WAP::wbxml($rules, $publicid); $output = $wbxml->compile($doc_xml, $encoding);
This module implements binarisation of XML file according the specification :
WAP - Wireless Application Protocol / Binary XML Content Format Specification / Version 1.3 WBXML (15th May 2000 Approved)
The XML input file must refere to a DTD with a public identifier.
The file WAP/wap.wbrules.xml configures this tool for all known DTD.
This module needs I18N::Charset and XML::DOM modules.
WAP Specifications, including Binary XML Content Format (WBXML) are available on <http://www.wapforum.org/>.
$wbxml = new WAP::wbxml($rules, $publicid);
Create a instance of WBinarizer for a specified kind of DTD.
If PublicId is undefined, the first found rules are used.
If the DTD is not known in the rules, default rules are used.
$output = $wbxml->compile($doc_xml, $encoding);
Compiles a XML document.
$filename = $wbxml->outfile($infile);
Builds output filename with the good extension.
wbxmlc, WAP::SAXDriver::wbxml
(c) 2001-2011 Francois PERRAD, France.
This program (WAP::wbxml.pm and the internal DTD of wbrules.xml) is distributed under the terms of the Artistic Licence.
The WAP Specification are copyrighted by the Wireless Application Protocol Forum Ltd. See <http://www.wapforum.org/what/copyright.htm>.
Francois PERRAD, francois.perrad@gadz.org
To install WAP::wbxml, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WAP::wbxml
CPAN shell
perl -MCPAN -e shell install WAP::wbxml
For more information on module installation, please visit the detailed CPAN module installation guide.