aboutsummaryrefslogtreecommitdiff
path: root/examples/cxx/tree/streaming/README
blob: 51e5c145cb0303f81e875ee78d82538cbbdafa49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
This example shows how to create an XML document by performing multiple
serializations of its smaller parts. This can be useful when the
document is too large to fit into memory or when the other end needs
to start processing without waiting for the whole document (streaming).

The example consists of the following files:

records.xsd
  XML Schema which describes a collection of data records.

records.hxx
records.cxx
  C++ types that represent the given vocabulary as well as serialization
  functions. These are generated by XSD from records.xsd.

driver.cxx
  Driver for the example. It progressively serializes one thousand data
  record into a file (out.xml).

To run the example simply execute:

$ ./driver