Changeset 901 for code/branches/core2/src/orxonox/core/Loader.cc
- Timestamp:
- Mar 19, 2008, 12:38:32 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core2/src/orxonox/core/Loader.cc
r899 r901 115 115 ticpp::Document xmlfile(level->getFile()); 116 116 xmlfile.LoadFile(); 117 117 118 ticpp::Element rootElement; 118 119 rootElement.SetAttribute("name", "root"); 120 rootElement.SetAttribute("bAutogenerated", true); 119 121 120 122 for (ticpp::Iterator<ticpp::Element> child = xmlfile.FirstChildElement(false); child != child.end(); child++) … … 126 128 rootNamespace->setLevel(level); 127 129 rootNamespace->setNamespace(rootNamespace); 128 rootNamespace-> deleteNamespaceNodesAfterDestruction(true);130 rootNamespace->setRoot(true); 129 131 rootNamespace->XMLPort(rootElement, true); 130 132 131 133 COUT(0) << "Finished loading " << level->getFile() << "." << std::endl; 134 135 COUT(4) << "Namespace-tree:" << std::endl << rootNamespace->toString(" ") << std::endl; 132 136 133 137 return true;
Note: See TracChangeset
for help on using the changeset viewer.