The PXP user's guide

Gerd Stolpmann

PXP is a validating parser for XML-1.0 which has been written entirely in Objective Caml.

Download PXP:

The free PXP library can be downloaded at http://www.ocaml-programming.de/packages/. This user's guide is included. Newest releases of PXP will be announced in The OCaml Link Database.

License

This document, and the described software, "PXP", are copyright by Gerd Stolpmann.

Permission is hereby granted, free of charge, to any person obtaining a copy of this document and the "PXP" software (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

The Software is provided ``as is'', without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall Gerd Stolpmann be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the Software or the use or other dealings in the software.


Table of Contents
I. User's guide
1. What is XML?
1.1. Introduction
1.2. Highlights of XML
1.3. A complete example: The readme DTD
2. Using PXP
2.1. Validation
2.2. How to parse a document from an application
2.3. Class-based processing of the node tree
2.4. Example: An HTML backend for the readme DTD
3. The objects representing the document
3.1. The document class
3.2. The class type node
3.3. The class type extension
3.4. Details of the mapping from XML text to the tree representation
4. Configuring and calling the parser
4.1. Overview
4.2. Resolvers and sources
4.3. The DTD classes
4.4. Invoking the parser
4.5. Updates