X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2FDEVEL%2Fpxp%2Fpxp%2Fdoc%2Fmanual%2Fhtml%2Fc533.html;fp=helm%2FDEVEL%2Fpxp%2Fpxp%2Fdoc%2Fmanual%2Fhtml%2Fc533.html;h=c58e6ff3e0a5535a538a782e0c945e0eeba8db52;hb=c03d2c1fdab8d228cb88aaba5ca0f556318bebc5;hp=0000000000000000000000000000000000000000;hpb=758057e85325f94cd88583feb1fdf6b038e35055;p=helm.git diff --git a/helm/DEVEL/pxp/pxp/doc/manual/html/c533.html b/helm/DEVEL/pxp/pxp/doc/manual/html/c533.html new file mode 100644 index 000000000..c58e6ff3e --- /dev/null +++ b/helm/DEVEL/pxp/pxp/doc/manual/html/c533.html @@ -0,0 +1,234 @@ +Using PXP
The PXP user's guide
PrevNext

Chapter 2. Using PXP

Table of Contents
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

2.1. Validation

The parser can be used to validate a document. This means +that all the constraints that must hold for a valid document are actually +checked. Validation is the default mode of PXP, i.e. every document is +validated while it is being parsed.

In the examples directory of the distribution you find the +pxpvalidate application. It is invoked in the following way: + +

pxpvalidate [ -wf ] file...
+ +The files mentioned on the command line are validated, and every warning and +every error messages are printed to stderr.

The -wf switch modifies the behaviour such that a well-formedness parser is +simulated. In this mode, the ELEMENT, ATTLIST, and NOTATION declarations of the +DTD are ignored, and only the ENTITY declarations will take effect. This mode +is intended for documents lacking a DTD. Please note that the parser still +scans the DTD fully and will report all errors in the DTD; such checks are not +required by a well-formedness parser.

The pxpvalidate application is the simplest sensible program +using PXP, you may consider it as "hello world" program.


PrevHomeNext
A complete example: The readme DTDUpHow to parse a document from an application
\ No newline at end of file