// // Programmer: Craig Stuart Sapp // Creation Date: Mon Jul 11 23:36:31 PDT 2011 // Last Modified: Mon Jul 11 23:36:34 PDT 2011 // Filename: ...sig/examples/xml/element.cpp // Web Address: http://sig.sapp.org/examples/museinfo/xml/element.cpp // Syntax: C++; museinfo // // Description: Extract element info from XML files. // #ifndef OLDCPP #include using namespace std; #else #include #endif #include "XmlFile.h" #include "Options.h" #include "museinfoVersion.h" // function declarations void checkOptions (Options& opts, int argc, char* argv[]); void example (void); void usage (const char* command); // global variables Options options; // database for command-line arguments /////////////////////////////////////////////////////////////////////////// int main(int argc, char** argv) { XmlFile xmlfile; // process the command-line options checkOptions(options, argc, argv); // figure out the number of input files to process int numinputs = options.getArgCount(); for (int i=0; i