example for XML DOM and JSAdapter