| Home | zeGraph lib | Lua lib | Custom lib | Tutorials | Notes | XML Script | C-Talk | Z-Script |
Graph
   axis
   blend
   color
   color bar
   fog
   freetype
   light
   line
   material
   node
   point
   plot
   polygon
   render
   scene
   stencil
   texcoord
   text
   texture
   vertex
Utility
   array
   bio
   hdf
   make
   math
   netcdf
Auxiliary
   curl
   expact
   sqlite
   window

zeExpat

Use lib.new("xml") to create the object. It is a simple binding of Expat library to Lua for parsing XML file. One purpose is for serialize zeArray data.

.callback(start, end, data)

Sets callback functions. The start callback function should process the depth of a opening tag, the tag name, and the attributes belonging to the tag. The end callback function should process the depth of the closing tag and the tag name. The data callback function should process contents between the opening and closing tags.

.version()

Returns the vertion number as string.

:parse(string)

Pasrses the XML string. Return nil if not successful.

.isblank(string)

Returns true if characters in the string are all blank; and returns false otherwise.

:error()

Returns the error message.

.mbs2utf(string)

Converts the ulti-byte string to UTF-8 string.

.utf2mbs(string)

Converts the UTF-8 string to multi-byte string.