634 key = xmlNodeListGetString(doc, cur->xmlChildrenNode, 1); |
634 key = xmlNodeListGetString(doc, cur->xmlChildrenNode, 1); |
635 if (sscanf((const char *)key, "%d", &ival) == 1) |
635 if (sscanf((const char *)key, "%d", &ival) == 1) |
636 unit->air_temperature = ival; |
636 unit->air_temperature = ival; |
637 xmlFree(key); |
637 xmlFree(key); |
638 } |
638 } |
639 if ((!xmlStrcmp(cur->name, (const xmlChar *)"BEER_ADDRESS"))) { |
|
640 unit->beer_address = (char *)xmlNodeListGetString(doc, cur->xmlChildrenNode, 1); |
|
641 } |
|
642 if ((!xmlStrcmp(cur->name, (const xmlChar *)"BEER_ADDRESS2"))) { |
639 if ((!xmlStrcmp(cur->name, (const xmlChar *)"BEER_ADDRESS2"))) { |
643 unit->beer_address2 = (char *)xmlNodeListGetString(doc, cur->xmlChildrenNode, 1); |
640 unit->beer_address2 = (char *)xmlNodeListGetString(doc, cur->xmlChildrenNode, 1); |
644 } |
641 } else if ((!xmlStrcmp(cur->name, (const xmlChar *)"BEER_ADDRESS"))) { |
|
642 unit->beer_address = (char *)xmlNodeListGetString(doc, cur->xmlChildrenNode, 1); |
|
643 } |
645 if ((!xmlStrcmp(cur->name, (const xmlChar *)"BEER_STATE"))) { |
644 if ((!xmlStrcmp(cur->name, (const xmlChar *)"BEER_STATE"))) { |
646 key = xmlNodeListGetString(doc, cur->xmlChildrenNode, 1); |
645 key = xmlNodeListGetString(doc, cur->xmlChildrenNode, 1); |
647 if (sscanf((const char *)key, "%d", &ival) == 1) |
646 if (sscanf((const char *)key, "%d", &ival) == 1) |
648 unit->beer_state = ival; |
647 unit->beer_state = ival; |
649 xmlFree(key); |
648 xmlFree(key); |