Changeset 152
- Timestamp:
- 07/01/08 14:59:45 (6 months ago)
- Files:
-
- trunk/dba/dba/xmlarchive.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/dba/dba/xmlarchive.cpp
r150 r152 46 46 throw XMLException("Error reading file"); 47 47 }; 48 xmlNodePtr root = xmlDocGetRootElement(mDocument); 49 if (root == NULL) 50 throw DataException("Root node not found"); 51 if (root->name == NULL) 52 throw DataException("Root node has no name"); 53 if (xmlStrcmp(mRootNodeName,root->name)) 54 throw DataException("Wrong root node name, forgot to call setRootNodeName?"); 48 55 } else { 49 56 mDocument = xmlNewDoc((const xmlChar*)"1.0");
