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:
XP consists of the following Java packages:
Versionwhich defines a String constant
stringspecifying the XP version
com.jclark.xml.tok.Encodingwhich 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.tok. This has three parallel subpackages; you must use
com.jclark.xml.parsetogether with one of the subpackages according to the type of exceptions that your callbacks throw:
java.io.IOException; this provides the same interface as version 0.2 of XP
com.jclark.xml.parser.awtto provide an exception type-safe wrapper for the kind of exception thrown by your callbacks
Timewhich reports the time taken to parse XML documents;
Normalizewhich outputs a normalized form of XML
See the XP API documentation (generated by javadoc) for details.