def _get_fsapi_value_raw(self, doc: str, type_tag: str):
    try:
        xml = minidom.parseString(doc).firstChild
        if (xml.getElementsByTagName('status')[0].firstChild.data == 'FS_NODE_BLOCKED'):
            raise FSAPI_Node_Blocked_Exception()
        if (not (xml.getElementsByTagName('status')[0].firstChild.data == 'FS_OK')):
            return None
        val_tag = xml.getElementsByTagName('value')[0]
        child = val_tag.getElementsByTagName(type_tag)[0].firstChild
        if (child is None):
            return None
        return child.data
    except Exception as e:
        self._fsapi.write_log('Getting value_raw {}: received <{}> error: {}'.format(self.key, doc, e))
        raise
def _get_fsapi_value_raw(self, doc: str, type_tag: str):
    try:
        xml = minidom.parseString(doc).firstChild
        if (xml.getElementsByTagName('status')[0].firstChild.data == 'FS_NODE_BLOCKED'):
            raise FSAPI_Node_Blocked_Exception()
        if (not (xml.getElementsByTagName('status')[0].firstChild.data == 'FS_OK')):
            return None
        val_tag = xml.getElementsByTagName('value')[0]
        child = val_tag.getElementsByTagName(type_tag)[0].firstChild
        if (child is None):
            return None
        return child.data
    except Exception as e:
        self._fsapi.write_log('Getting value_raw {}: received <{}> error: {}'.format(self.key, doc, e))
        raise