Whats the question, how to build some perl data structure? What kind are you trying to build?
In reply to Re: Parsing xml using libXML by Anonymous Monk in thread Parsing xml using libXML by shaq