From 8286ac511144e4f17d34eac9affb97e50646344a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Wed, 23 Jul 2014 15:25:44 +0200 Subject: Imported Upstream version 4.0.0 --- xsd/examples/cxx/tree/streaming/README | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) (limited to 'xsd/examples/cxx/tree/streaming/README') diff --git a/xsd/examples/cxx/tree/streaming/README b/xsd/examples/cxx/tree/streaming/README index ac7e7f0..5a467e0 100644 --- a/xsd/examples/cxx/tree/streaming/README +++ b/xsd/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.2.3