no*********@gmail.com wrote:
I've got a vague question - just polling for info I guess, while
looking for info elsewhere, too..:
I'm wondering if there's a commonly used DTD for contact lists in XML.
I've got a contacts database, which I'd like to export to XML. I could
just design this; but if there's an existing one that's commonly used
I'd prefer to do that (depending on what it is and if it'll be dynamic
enough to let me include everything I need to).
The only format I have used is the one in the Sharp Zaurus PDA for
their Contacts PIM app. No DTD available, AFAIK, but the data looks
like this:
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE Addressbook ><AddressBook>
<Groups>
</Groups>
<Contacts>
<Contact FirstName="" LastName="" FileAs="" JobTitle="" Company=""
BusinessPhone="" BusinessFax="" BusinessMobile="" DefaultEmail=""
Emails="" BusinessStreet="" BusinessCity="" BusinessZip=""
BusinessCountry="" Gender="" rid="" rinfo="" Categories="" Uid="" />
....
Fields not filled in don't get represented (so no attribute is ever
empty), and by the look of it, it's just fieldnames normalised to
attribute names. Built for speed, not for anything else.
///Peter