DeltaXML.com - Change Control For XML, In XML.(spacer) Home    About Us    Contact Us    Search
(spacer)

Parser Control Example

Introduction

This code demonstrates how through the use of SAXSource input a pipeline component can control features of the parsing, such as validation and namespace processing.

The pipeline uses a DeltaXML Comparator component, but the techniques are equally applicable to JAXP Transformers or indeed any JAXP compatible component which can use SAXSource input.

Compile and Run

Please use the provided Ant script, or for Windows Systems with J2SE 1.4.x, use the following commands:

Compile:
  javac ParserControl.java

Run:
  java -cp ../saxon.jar;. ParserControl demo1.xml demo2.xml
  java -cp ../saxon.jar;. ParserControl demo1.xml demo3.xml

Manifest

README.txt

This file

build.xml

Ant script for compilation, running, tidyup

ParserControl.java

Pipeline source code

demo1.xml

Example input data

demo2.xml

Example input data

demo3.xml

Example input data

 (spacer)Copyright © 2000-2005 DeltaXML Ltd, Malvern, UK. All rights reserved.
info@deltaxml.com