Project

Profile

Help

How to connect?
Download (1.95 KB) Statistics
| Branch: | Tag: | Revision:

he / tags / 9.2.0.5 / hej / net / sf / saxon / pull / package.html @ 90ee0d1a

1
<html>
2

    
3
<head>
4
<title>Package overview for net.sf.saxon.pull</title>
5
</head>
6

    
7
<body>
8

    
9
<p>This package provides classes that interface Saxon to an XML parser that supplies data in the form
10
    of a stream of events. It provides an interface, <code>PullProvider</code>, that is an abstraction
11
over the pull parser interfaces provided on Java and .NET, and that can in principle be implemented
12
by other data sources to deliver input documents as if they came from a parser.</p>
13

    
14
<p>The API, defined in class <code>PullProvider</code>, is loosely modelled on the StAX <code>XMLReader</code>
15
API. It is not identical, because it is designed as an intimate and efficient interface that integrates with
16
Saxon concepts such as the <code>SequenceIterator</code> and the <code>NamePool</code>. A class
17
<code>StaxBridge</code> is available that provides the <code>PullProvider</code> interface on top of a
18
StAX pull parser. In the .NET build, a similar class <code>DotNetPullProvider</code> interfaces Saxon to the
19
Microsoft <code>XmlTextReader</code>.</p>
20

    
21
<p>A source of data delivered by a <code>PullProvider</code> may be presented either as a <code>PullSource</code>
22
or as a <code>StaxSource</code>. Both these are accepted by any Saxon interface that allows a JAXP
23
<code>Source</code> object to be supplied.</p>
24

    
25
<p>Additional implementations of <code>PullProvider</code> are available in <code>Saxon-PE</code> and
26
<code>Saxon-EE</code>, specifically, implementations that deliver data by walking a Saxon tree structure
27
(represented by class <code>NodeInfo</code>), and implementations that allow queries to be evaluated
28
in pull mode, with lazy construction of temporary document and element nodes.</p>
29

    
30
<p>Some examples of application code using the pull interface with Saxon are provided in the
31
<code>PullExamples.java</code> file in the samples directory.</p>
32

    
33

    
34
<p align="center"><i>Michael H. Kay<br/>
35
Saxonica Limited<br/>
36
10 June 2009</i></p>
37
</body>
38
</html>
(10-10/10)