Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Memo field in XML
Message
De
09/04/2002 08:31:36
 
 
À
07/04/2002 13:18:54
Information générale
Forum:
ASP.NET
Catégorie:
XML
Divers
Thread ID:
00641962
Message ID:
00642582
Vues:
19
>Hi, Everybody...
>
>How I must handle the content of a memo field in a XML document?
>
>TIA

There are two (or maybe more) possible approaches:
1.Element based XML and memos wrapped in CDATA sections:
e.g.
...
<tableName
...
  <memoField
    <[CDATA[ Some long long memo text containing some symbols &X&;<> not allowed for attributes ]]
  </memoField
...
</tableName
...
2. Attribute based XML and memos pre-processed in order to replace all control symbols, less-than, greater-than and some other special symbols with their XML-ENTITY representations (e.g. &#07; for chr(7))
...
<tableName memoField="Some long long memo text containing some symbols &#38;X&#38;;&#60;&#62; not allowed for attributes" /> 
...
see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconattributevaluenormalization.asp for more info about XML-ENTITIES and attribute normalization (on the address above there is a link to the W3C XML specification.

Which approach you will choose depends on what kind of processing you will use XML for.

HTH
Zlatin Zlatev,
MCSD (VS6)

Make solutions, not programs!

Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform