diff --git a/document.py b/document.py index 80b1d5a..e2c73c8 100644 --- a/document.py +++ b/document.py @@ -717,7 +717,10 @@ class Incoming(metaclass=PoolMeta): else tuple(list(list_item) + [None])) value = self._readxml_getvalue( - xmldata, xpath_list + [x, xkey], vtype=xtype) + xmldata, + xpath_list + [x] + + (xkey if isinstance(xkey, list) else [xkey]), + vtype=xtype) if value is not None: values[key] = value if values: