summaryrefslogtreecommitdiff
path: root/examples/cxx/tree/streaming/README
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2014-07-04 11:15:44 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2014-07-04 11:15:44 +0200
commit57fe13de5c01bc8e5bbeb39acd131c9329245261 (patch)
tree1196307d17664b97af750778488e4798d0dbf8dc /examples/cxx/tree/streaming/README
parenta1bc52f9ae499a672b05b3264f82a24637a16a02 (diff)
Update streaming example with new implementation
Diffstat (limited to 'examples/cxx/tree/streaming/README')
-rw-r--r--examples/cxx/tree/streaming/README23
1 files changed, 14 insertions, 9 deletions
diff --git a/examples/cxx/tree/streaming/README b/examples/cxx/tree/streaming/README
index ac7e7f0..5a467e0 100644
--- a/examples/cxx/tree/streaming/README
+++ b/examples/cxx/tree/streaming/README
@@ -1,5 +1,5 @@
-This example shows how to perform stream-oriented, partially in-memory
-XML processing using the C++/Tree mapping. With the partially in-memory
+This example shows how to perform stream-oriented, partially in-memory
+XML processing using the C++/Tree mapping. With the partially in-memory
parsing and serialization only a part of the object model is in memory at
any given time. With this approach we can process parts of the document
as they become available as well as handle documents that are too large
@@ -17,7 +17,7 @@ position.xml
position.hxx
position.cxx
- C++ types that represent the position vocabulary as well as parsing
+ C++ types that represent the position vocabulary as well as parsing
and serialization functions. These are generated by XSD from
position.xsd.
@@ -29,15 +29,20 @@ parser.cxx
serializer.hxx
serializer.cxx
- Stream-oriented DOM serializer implementation that allows us to
+ Stream-oriented DOM serializer implementation that allows us to
serialize an XML Document as a series of object model fragments.
+grammar-input-stream.hxx
+grammar-input-stream.cxx
+ Input stream implementation with the special-purpose schema grammar
+ decompression algorithm. It is used internally by the streaming parser.
+
driver.cxx
- Driver for the example. It first parses the input file into a series
- of DOM fragments which are then parsed into the object model fragments.
- The driver prints the information from the document as it becomes
- available. The driver then creates a new XML document (out.xml) by
- creating and serializing a series of object model fragments.
+ Driver for the example. It parses the input file into a series of DOM
+ fragments which are then parsed into the object model fragments. The
+ driver prints the information from the document as it becomes available.
+ It also serializes the object model fragments into a new XML document
+ (out.xml).
To run the example simply execute: