in reply to editing a file with regular expressions
perl -i -pe 's!(xdbns=.jabber:iq:auth.>)[^<]*(</password)!$1your_passw +ord$2!g' your_user_file.xml [download]
Update: I messed up the regex