Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Memo field in XML
Message
From
09/04/2002 08:31:36
 
 
To
07/04/2002 13:18:54
General information
Forum:
ASP.NET
Category:
XML
Miscellaneous
Thread ID:
00641962
Message ID:
00642582
Views:
18
>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!

Previous
Next
Reply
Map
View

Click here to load this message in the networking platform