From 57fe13de5c01bc8e5bbeb39acd131c9329245261 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 4 Jul 2014 11:15:44 +0200 Subject: Update streaming example with new implementation --- examples/cxx/tree/streaming/README | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) (limited to 'examples/cxx/tree/streaming/README') 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: -- cgit v1.1