Copyright (c) 1997, 1998 James Clark
See the file copying.txt for copying permission.
XP is an XML 1.0 parser written in Java. It is fully conforming: it detects all non well-formed documents. It is currently not a validating XML processor. However it can parse all external entities: external DTD subsets, external parameter entities and external general entities.
XP can be downloaded from ftp://ftp.jclark.com/pub/xml/xp.zip. This is a beta-test version.
It has the following design goals:
A few caveats:
XP supports the following encodings:
UTF-8
UTF-16
ISO-8859-1
US-ASCII
XP consists of the following Java packages:
com.jclark.xml
Version
which defines a
String constant string
specifying the XP version
com.jclark.xml.tok
com.jclark.xml.tok.Encoding
which represents a possible
encoding of a parsed XML entity and provides operations on byte arrays
that represent all or part of an entity in that encoding
com.jclark.xml.parse
com.jclark.xml.tok
. This has three parallel subpackages;
you must use com.jclark.xml.parse
together
with one of the subpackages according to the type of exceptions
that your callbacks throw:
com.jclark.xml.parse.io
java.io.IOException
;
this provides the same interface as version 0.2 of XP
com.jclark.xml.parse.awt
java.awt.AWTException
com.jclark.xml.parse.base
com.jclark.xml.parser.awt
to provide an exception
type-safe wrapper for the kind of exception thrown by your callbacks
com.jclark.xml.sax
com.jclark.xml.parse
com.jclark.xml.output
com.jclark.xml.apps
Time
which reports the time
taken to parse XML documents; Normalize
which outputs
a normalized form of XML
See the XP API documentation (generated by javadoc) for details.
James Clark