Implementation of #19

Not yet ready to merge.

- doesn’t work yet
- tests are broken
- not operator seems to break due to xmldom