I'm looking for a light-weight database library that I can compile into a C++ application.
Does any such exist?
For pure XML embedded database you might want to peek at Oracle Berkeley DB XML.