This comment needs more explanation.  Why is this necessary?

Also, please move the XML string into a constant outside this function.  This will make the setup more readable.