Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Element Names
Message
Information générale
Forum:
ASP.NET
Catégorie:
XML
Titre:
Divers
Thread ID:
01362922
Message ID:
01363167
Vues:
10
>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 guess it depends on how you want to use it. If you embed it in a Fields collection it's easier to iterate over just those elements (assuming you have other types of "collections" that will be added). If there isn't any other collection in the XML, then that isn't as much of a benefit.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform