@fabaff, what do you think about adding support for pseudo-attribute “@” to return the tag itself ?
Something like:
if self._attr == "@":
value = raw_data.select(self._select)[self._index]
elif self._attr is not None:
value = raw_data.select(self._select)[self._index][self._attr]
...
This way, we could get svg or canvas and convert into an image.