Just set appid here to xml.getAttr(node, 'appid').