Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The XML normally parse the complete text in an XML document i.e., when an XML element is parsed, the text data between the XML tags is also parsed. Consider the following example:

<message>This text will also be parsed</message> 


In this example, the message between the <message> and </message> text will normally be parsed by the XML parser. Consider another example:
<name><first>Hello</first><last>User!</last></name> 

In this example also, the XML parser will break the XML tags and parse the text data as Hello User!
The text data that is parsed by the XML parser is termed as Parsed Character Data or PCData.

However, the user may require to add some text data that should not be parsed by the XML parser. The Character Data or CData is the text data that should not be parsed by the XML parser. CData is also termed as Unparsed Data. 

Adeptia Suite enables you to add a CData section with the target schema. The text data inside a CDATA section is ignored by the parser. 

 


A CDATA section starts with "<![CDATA[" and ends with "]]>". CDATA sections are useful for writing XML code as text data within an XML document.


 
Info

A CDATA section cannot contain the string "]]>" and therefore it is not possible for a CDATA section to contain nested CDATA sections.

You can use multiple CDATA sections by splitting each occurrence of the "]]>"just before the ">".


Steps to add a CData section

  1. Ensure that the source and destination layouts are loaded and all their elements are listed under their respective nodes.
  2. Select the element of the destination layout, click more icon and then select Add to CDATA Section Elements option.



  3. It displays the CDATA in element.