Monthly Archives: June 2006

C++ and XML Refresher

I needed a quick refresher on my C++ and XML skills, so I decided to throw this little program together. Basically, this program will let you create and modify an XML file which keeps info on your books. It stores the Title, Author, and ISBN on any book you add. This program uses TinyXML to work with the XML file. This program is only good for a tutorial on TinyXML and C++.

Compile with this command:

]$ g++ -o xmltest xmltest.cpp book.cpp tinyxml.cpp tinyxmlerror.cpp tinyxmlparser.cpp tinystr.cpp

Here are the links to the files I programmed:

http://www.mattweber.org/files/book.h

http://www.mattweber.org/files/book.cpp

http://www.mattweber.org/files/xmltest.cpp

Here is a link to the entire project:

http://www.mattweber.org/files/xmltest.tar.bz2