| 226 | } |
| 227 | |
| 228 | void Element::fromXml(const tinyxml2::XMLDocument &nodeOfDoc, const ElementPtr &parentOfNode) { |
| 229 | const ::tinyxml2::XMLElement *node = nodeOfDoc.RootElement(); |
| 230 | this->fromXMLNode(node, parentOfNode); |
| 231 | |
| 232 | if (0 != nodeOfDoc.ErrorID()) |
| 233 | BLOGE("parse xml error %s", nodeOfDoc.ErrorStr()); |
| 234 | |
| 235 | } |
| 236 | |
| 237 | void Element::fromXMLNode(const tinyxml2::XMLElement *xmlNode, const ElementPtr &parentOfNode) { |
| 238 | if (nullptr == xmlNode) |
no test coverage detected