[Mono-list] Deserialize with an index

Pablo Fischer pablo@pablo.com.mx
Wed, 03 Dec 2003 18:41:09 -0600


Hi!

I'm looking to deserialize a 'xml serializable' file.. but with an
index, let me explain:

I have a file called accounts, in this file I have this xml structure:
<mblogg>
  <mbloggyaccounts>
    <account>
      <username>joe</username>
      <password>foobar</password>
      <identifier>foobar website</identifier>
      <url>foobar.com/xmlrpc.php</url>
    </account>
  </mbloggyaccounts>
</mbloggy>

Today I can deserialize it into an ArrayList, however Im looking to
'generate' and index, so I can access/update/delete data very easy, for
example:

accounts.updateAccounts(1, account_info_array);

So I'll update the information (account_info_arrray) of the Account
number 1. 

More clear? I'm looking to access the information more easier with an
index (an autoincrement).

Also.. I DONT want to save that index in the file, I just need the index
in the memory to access more faster.

Another note: I can have information 'repeated', for example I can have
the same username (if the user has many sites but with the same
username) or the same site with different usernames & passwords.

Thanks anyway!
Pablo
-- 
Pablo Fischer Sandoval (pablo [arroba/at] pablo.com.mx)
http://www.pablo.com.mx
http://www.debianmexico.org
GPG FingerTip: 3D49 4CB8 8951 F2CA 8131 AF7C D1B9 1FB9 6B11 810C
Firma URL: http://www.pablo.com.mx/firmagpg.txt