Comment
Comment by mickael
You need a stream parser like expat. No need to code your custom parser and once you settle at level n+1 in the XML it is just like parsing independent document.
But again, the parsing is hidden by existing XMPP library, so you do not even need to go to that level of details.