We utilize XStream quite a bit in our application and have been quite 
successful with it. However, I am stumped by how to configure XStream to 
unmarshal the following XML:

      <storeInfo>
        <postalCode>18055</postalCode>
        <stores desc="MULTIPLE_STORES">
          <store>
            <storeNumber>2167</storeNumber>
            <storeName>Penn Street Market</name>
          </store>
          <store>
            <storeNumber>1883</storeNumber>
            <storeName>AAA Northampton County</storeName>
          </store>
          <region>NORTHWEST</region>
        </stores>
      </storeInfo>

I have tried many different combinations of aliases (class, field, attribute) 
and different object hierarchies, but nothing seems to work.

Can you please assist? I have complete flexibility in the object hierarchy, so 
an recommendations on how to set up the object graph and XStream config would 
be greatly appreciated.
------------------------------
Mike Daleiden

"Not everything that is said at you or to you is about you." - Joel C. Hunter
"Everyone should be quick to listen, slow to speak and slow to become angry." - 
James 1:19





  ________________________________
This communication (including all attachments) is intended solely for
the use of the person(s) to whom it is addressed and should be treated
as a confidential AAA communication. If you are not the intended
recipient, any use, distribution, printing, or copying of this email is
strictly prohibited. If you received this email in error, please
immediately delete it from your system and notify the originator. Your
cooperation is appreciated.

Reply via email to