A while back I used to spend a lot of my time trying to extract and parse out SAML tokens from HTTP posts to
http://www.visionarytech.net/software/saml/
You can use the page above to paste in your captured form posts (disable off JavaScript after you submit credentials, view source, and copy & paste into this form), and it will parse out the XML contained within the post and clean up the encoding.
Hope it is helpful to someone!