XML plugin -- corrections made

locale fixes, new TEI approach partially implemented, fixed echoing password, mostly removed commented code