extract code from scala xml doc

*expect bad request but not ok.
it need help to fix later.