| 102 | } |
| 103 | |
| 104 | void Node::set(const std::string& attribute, std::string value) |
| 105 | { |
| 106 | if (value.length()) |
| 107 | { |
| 108 | m_attrs[attribute] = value; |
| 109 | } |
| 110 | else |
| 111 | { |
| 112 | m_attrs.erase(value); |
| 113 | } |
| 114 | } |
| 115 | |
| 116 | std::string Node::to_xml() const |
| 117 | { |