| 288 | } |
| 289 | |
| 290 | SerializationNode *XMLSerializationNode::addSection(const char *name) |
| 291 | { |
| 292 | auto includeNode = static_cast<XMLSerializationNode *>(this->addNode("xi:include")); |
| 293 | auto path = UString(name) + ".xml"; |
| 294 | auto nsAttribute = includeNode->node.append_attribute("xmlns:xi"); |
| 295 | nsAttribute.set_value("http://www.w3.org/2001/XInclude"); |
| 296 | auto attribute = includeNode->node.append_attribute("href"); |
| 297 | attribute.set_value(path.c_str()); |
| 298 | return this->archive->newRoot(this->getPrefix(), name); |
| 299 | } |
| 300 | |
| 301 | SerializationNode *XMLSerializationNode::getSectionOpt(const char *name) |
| 302 | { |
no test coverage detected