Changeset 165
- Timestamp:
- 07/18/08 14:45:21 (6 months ago)
- Files:
-
- trunk/dba/dba/xmlistream.cpp (modified) (6 diffs)
- trunk/dba/test/xmltestcase.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/dba/dba/xmlistream.cpp
r164 r165 63 63 64 64 while(node != NULL) { 65 debug("checking node %s", (const char*)node->name);65 //debug("checking node %s", (const char*)node->name); 66 66 if (!strcmp(getRootTableName(child),(const char*)node->name)) { 67 67 debug("updating data for member %s, starting at node %s", getRootTableName(child),(const char*)node->name); … … 70 70 applyFilters(ref,node); 71 71 getChildren(ref,node->children); 72 if (node->children) debug("up at node %s", (const char*)node->name); 72 73 }; 73 74 node = setNextNode(node); … … 79 80 pNode = findNonTextNode(pNode); 80 81 const ColTable* table = getColTable(*pObject); 82 if (pNode != NULL) debug("going down, node %s, updating object '%s' collections", pNode->name, getRootTableName(*pObject)); 81 83 while(pNode != NULL) { 82 debug("getChildren for %s at node %s", getRootTableName(*pObject), pNode->name);83 84 //traverse through call collection members that 84 85 //have fkey name. … … 96 97 throw DataException(err.str()); 97 98 } else { 99 debug("got fkeyname, going down to node %s children", node->name); 98 100 updateCollection(pObject,entry,node->children); 101 debug("up (from fknode) at node %s", node->name); 99 102 }; 100 103 } else { … … 132 135 //collection tables 133 136 Storeable* ref = pFilter->put(); 134 if (mCurrentNode->children != NULL) 137 if (mCurrentNode->children != NULL) { 135 138 getChildren(ref,mCurrentNode->children); 139 if (mCurrentNode->children != NULL) debug("up at node %s", (const char*)mCurrentNode->name); 140 }; 136 141 ret = true; 137 142 … … 188 193 if (!xmlNodeIsText(node) && !xmlStrcmp(name,node->name)) 189 194 break; 195 if (!xmlNodeIsText(node)) debug("findNode: ignoring node %s", node->name != NULL ? (const char*)node->name : "(null)"); 190 196 }; 191 197 trunk/dba/test/xmltestcase.cpp
r164 r165 457 457 458 458 dba::XMLIStream stream(ar.getIStream()); 459 //stream.enableDebug(); 459 460 TreeObject obj1; 460 461 stream.get(&obj1);
