Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > d5895af3ca0499c54abd52079034c08c > files > 5

php-wbxml-1.0.3-5mdv2010.0.i586.rpm

WBXML extension for PHP
------------------------
This extension provides xml->wbxml and wbxml->xml conversion capabilities 
using the libwbxml library. You will probably need to install the Expat XML 
Parser, for example by installing in the libexpat and libexpat-devel 
packages which should be available with most distributions.

The libwbxml website is at:
  http://libwbxml.aymerick.com/
    
The Expat website is at:
  http://expat.sourceforge.net/

API

 The extension provides two functions
 
  string wbxml_encode(
  	string xml, 
  	int wbxml_version	= WBXML_VERSION_12, 
  	bool use_strtbl		= true, 
  	bool keep_ignorable_ws	= false)
  	
  string wbxml_decode(
  	string wbxml, 
  	int gen_type		= WBXML_GEN_XML_INDENT, 
  	int lang 		= WBXML_LANG_UNKNOWN, 
  	int indent 		= 0
  	bool keep_ignorable_ws	= false)

 The parameters are
 
   xml			- An XML document in a string
   wbxml		- Binary encoded XML in a binary string (might contain \0 bytes)
   wbxml_version	- WBXML version, one of the WBXML_VERSION_* constants
   use_strtbl		- Use a string table to reduce the size of the encoded document
   keep_ignorable_ws	- Keep whitespace which might otherwise be stripped
   gen_type		- Type of XML to generate, one of the WBXML_GEN_XML_* constants
   lang			- WBXML flavor, one of the WBXML_LANG_* constants
   indent		- Number of spaces to indent the generated markup
   
 The available constants are
 
  WBXML_VERSION_10	- WBXML version 1.0
  WBXML_VERSION_11	- WBXML version 1.1
  WBXML_VERSION_12	- WBXML version 1.2
  WBXML_VERSION_13	- WBXML version 1.3
 
  WBXML_GEN_XML_COMPACT		- Generate compact XML without extra whitespace, i.e. one long line
  WBXML_GEN_XML_INDENT		- Generate readable indented XML
  WBXML_GEN_XML_CANONICAL	- Generate normalized XML (http://www.w3.org/TR/xml-c14n)

  WBXML_LANG_UNKNOWN	- Unknown WBXML flavor, the flavor will be autodetected from the document
   
   Use get_defined_constants() to see the rest of the WBXML_LANG_* constants see
    
   http://libwbxml.aymerick.com/browser/wbxml2/trunk/README

Maintainers:
  Mikael Johansson		mikael AT synd DOT info