Improve xml handling

Fixed #1666. Previous parser does not work for multi line statements with `//` 
The link to falback: https://github.com/sbt/sbt/pull/1645#issuecomment-58109081 - but I do not know the plan/progress.