xmltools for java and javascript