Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Element Names
Message
De
20/11/2008 14:55:35
 
 
À
19/11/2008 16:09:43
Information générale
Forum:
ASP.NET
Catégorie:
XML
Titre:
Divers
Thread ID:
01362922
Message ID:
01363309
Vues:
11
>>Just really digging into designing my own XML file. And I have a question.
>>
>>I have a section that list the fields in a table. Is using the field name as the element name OK as in this example:
>>
>>
>><?xml version="1.0"?>
>><DataFiles>
>>  <DataFile Source="" FileType="DBF" FileName="run.dbf">
>>    <Fields>
>>      <NM />
>>      <DEPT />
>>      <CO />
>>      <AD />
>>      <CTY />
>>      <ST />
>>      <ZIP />
>>    </Fields>
>>  </DataFile>
>></DataFiles>
>>
>>Or should I do
>>
>>  <Field Name="NM" />
>>
>
>I don't see anything wrong with using the field names as element names. The alternative method using attributes makes the XML larger and I can't see any real benefit.
>
>Just my 2c's
>Viv

That's what I was thinking, thanks!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform