modified to better reflect the usage of the simple jaxb2 dom