using $.xml() when xmlMode is true

fixes #4