string DeviceParser::getSensorChild(string tagname) { DOMNode * temp = node; if (tagname.compare("position") == 0) { temp = temp->FirstChildElement(tagname); return getAttribute(temp, "type"); } if (tagname.compare("velocity") == 0) { temp = temp->FirstChildElement(tagname); return getAttribute(temp, "type"); } if (tagname.compare("acceleration") == 0) { temp = temp->FirstChildElement(tagname); return getAttribute(temp, "type"); } if (tagname.compare("unit2sensor") == 0) { temp = temp->FirstChildElement(tagname); return getAttribute(temp, "type"); } else return ""; }