Whew! A lot of scrolling in this post to get to the bottom. Could you possibly post the XML that you're trying to post as an attachment rather than in the message itself.
It may help provide a clearer understanding around what you're asking and what is your actual data.
Have you started on any kind of a transformation you can share?