How to embed a transcript within a description

PBCore does not limit the amount of data contained in its description-oriented fields, so it’s possible to includet whole transcripts. Transcripts and other lengthy descriptions are likely to contain characters that are problematic to include in XML, however.

There are two solutions:

1) wrap or surround it within a CDATA structure:

<pbcoreDescription>
<![CDATA[This is how to surround data that would otherwise cause problems to an XML parser; 
such data types can range from characters otherwise used in XML, to binary data types]]>
</pbcoreDescription>

2) use html escape characters within the text. For example: for & (ampersand), substitute

&amp;

for ” (quotation mark) substitute

&quot;

Leave a Reply