Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Attribute-centric XML
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Web Services
Divers
Thread ID:
00620011
Message ID:
00620106
Vues:
21
Brian,

From what I can tell, if you mix elements and attributes in an XML document and call XmlToCursor() on that document, it will ignore the attributes. Seems like there's a bit of a problem there that someone didn't think about. I'll send off a request to Ken about it.

HTH,

Travis

>Travis,
>
>Thanks. That helps a lot.
>
>Does XMLTOCURSOR() handle a mixed document okay (and put everything where it belongs)?
>
>Brian
>
>>Brian,
>>
>>Unfortunately, there is not right and wrong answer that's going to tell you when and when not to use attribute-centric XML. It's all a matter of personal preference to a degree. There are some things, however, that can only be done as elements.
>>
>>Attribute-centric XML is useful when you know that only one of any particular piece of information may occur once and only once for each parent element. Attribute-centric XML will also reduce the amount of space required in the documnent.
>>
>>I've found that, in practice, it's best to use a mixture of elements and attributes. Elements provide extensibility to cardinality, while attributes maintain a single instance of a piece of data.
>>
>>HTH,
>>
>>Travis
>>
>>>Under what circumstances is attribute-centric XML useful? Can someone give me an example?
>>>
>>>Thanks,
>>>bes
Travis Vandersypen
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform