Dhruv,

        Isn't email great?  I couldn't come close to pronouncing your name.
But with email I can greet you, opening with 'Dear Dhruv' and you don't know
the difference.

Anyway, see if the attached little example suits your needs.
The class 'Parent' uses a HashMap to store the keys/values.

--Erik


      > -----Original Message-----
      > From: Dhruv Vohra [mailto:[EMAIL PROTECTED]]
      > Sent: Tuesday, January 07, 2003 12:45 PM
      > To: [EMAIL PROTECTED]
      > Subject: [castor-dev] How do I handle java.util.Hashtable
      > 
      > 
      > Hi,
      > 
      >    I have Java Classes that contain "Hashtable".
      > 
      > a) How do I write a mapping.xml to map both the key
      > and value of a Hashtable?
      > 
      > b) Any recommended way to write the XML instace file
      > to reprsent Hashtable: 
      >    . The key should be an attribute and the value the
      > nodeValue For example:
      >      For a person named DKV who is of age 23:   
      >      <Person name="DKV">23</Person>
      > 
      >  or
      > 
      >    . <Person>
      >       <name> DKV </name>
      >       <age> 23 </age>
      >      </Person>
      > 
      > 
      > I have to find a solution for exsiting "working" code
      > and I am new to castor. Please help. The examples do
      > not talk about Hashtable - only "collection/List". I
      > could also not find any answer in the archives.
      > 
      > Thanks,
      > DKV
      > 
      > PS) If this cannot be done then any workaround?
      > 
      > __________________________________________________
      > Do you Yahoo!?
      > Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
      > http://mailplus.yahoo.com
      > 
      > ----------------------------------------------------------- 
      > If you wish to unsubscribe from this mailing, send mail to
      > [EMAIL PROTECTED] with a subject of:
      >         unsubscribe castor-dev
      > 
      > 

Attachment: hash3.zip
Description: hash3.zip

Reply via email to