This section provides the following samples of XmlLite programming in C/C++.
To run these samples, you must have installed the XmlLite development files, Xmllite.lib and Xmllite.h. For more information, see Installing XmlLite.
This example shows how to implement a basic XML document reader and writer app with XmlLite.
This example provides details of how to write an XML document by using XmlLite.
This example shows how to process an XML document and create a derivative XML document from it.
This example shows the simplest case of writing with namespaces by specifying a namespace prefix and URI.
This example provides details of how to write with a default namespace.
This example shows how to force an attribute to be in no namespace.
This example writes a document that contains nested namespaces.
This example writes an XML document that is encoded with UTF-16 (Unicode).
This example reads a UTF-16 encoded document.
This example shows how to use chunking. Chunking is a process that provides better memory management when reading very large XML documents.
This example shows how to implement a memory manager that limits how much memory the parser can allocate.
This example shows how to implement an external entity resolver.
The example shows the performance benefit of using a nonblocking parser in XmlLite to read an RSS feed, as opposed to using synchronous download stream parsing.
This example shows how to use XmlLite to read an interleaved file that contains mixed XML and text content.
This example shows how to use a DOCTYPE declaration to write a document with a specified name and attributes.