Abstract out the checking of XML child nodes.
Test the trust XML message.
Test the permissions XML message.