Index
All Packages
All Categories
By Author

ap (3)
cp (3)
dp (3)
exe (3)
gui (0)
gui/gtk (0)
gui/tk (4)
io (1)
lib (11)
math (0)
net (9)
nlp (18)
op (4)
os (2)
program (3)
sp (2)
tool (9)
wp (2)
xml (2)

Expat

type:package
id:mogul:/duchier/expat
section:mogul:/duchier
version:1.0
blurb:A SAX-like XML processor using Jame Clark's expat library, and a parser derived from it
author:Denys Duchier
category:xml
documentation:index.html
download:duchier-expat__1.2.5__source__1.0.pkg
duchier-expat__1.3.0__source__1.0.pkg
requires:mogul:/duchier/inputsource
provides:x-ozlib://duchier/xml/expat/expat.so
x-ozlib://duchier/xml/expat/Processor.ozf
x-ozlib://duchier/xml/expat/Parser.ozf
x-ozlib://duchier/xml/expat/example.exe
x-ozlib://duchier/xml/expat/test1.xml
x-ozlib://duchier/xml/expat/test2.xml

This is an interface to James Clark's expat library for parsing XML documents. Module Processor.ozf exports a class that implements a SAX-like processor which can be used e.g. as shown below. SAX events are invoked as methods. Each application should specialize these methods to do something useful.

functor
import Processor at 'x-ozlib://duchier/xml/expat/Processor.ozf'
define
   ...
   class MyProcessor from Processor.'class'
     ...
     meth startElement(Tag Attribs) ... end
     ...
   end
   ...
end