use DOMDocument for processor impls, closes #1258