Biztalk Mapper: Cannot have ']]>' inside an XML CDATA block.

LALITHA KRISHNA 41 Reputation points
2022-05-31T09:19:03.27+00:00

Hi experts,

i m calling an C# functions inside the XSLT,
<msxsl:script language="C#" implements-prefix="userCSharp">
<![CDATA[ methods here..

]]>
</msxsl:script>
while saving the map with above changes , its throwing error "Cannot have ']]>' inside an XML CDATA block.".
Can any body help to slove this CDATA issue.

BizTalk Server
BizTalk Server
A family of Microsoft server products that support large-scale implementation management of enterprise application integration processes.
389 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. LALITHA KRISHNA 41 Reputation points
    2022-06-02T05:04:56.753+00:00

    <![CDATA[Nesting is not allowed "]]>" document]]>

    So, the above line is written as two parts as follows. This is the exact way to put a section end inside a CDATA section. By which replace]] > in the specified data with]]]] ><! [CDATA [> so that “>” is perfectly away from the brackets (as we broke the bracket sequence). And when the parser looks out for ]]> it is specified as the three-character sequence.

    0 comments No comments

  2. Kamlesh Kumar 3,866 Reputation points
    2022-06-02T13:14:01.007+00:00

    Hi There,

    Thank you for asking this question on the Microsoft Q&A Platform.

    How does BizTalk handle CDATA? Well, BizTalk does what it should when it receives a node with a CDATA section. The XML Disassembler skips the parsing of the inner data. The maps are where you can run into issues because they will remove the CDATA tags when the data is being mapped.

    Luckily they provided a way for you to add the CDATA sections back into the output message to ensure they are escaped correctly. You can do that by setting the property called CDATA section elements.

    I would suggest to check the below blogpost to understand the way,

    http://www.biztalkgurus.com/biztalk_server/biztalk_blogs/b/biztalk/archive/2015/03/18/working-with-cdata-elements-inside-a-biztalk-map.aspx

    Regards,
    Kamlesh Kumar
    BizTalk Techie

    Please don't forget to click on 205836-130616-image.png or upvote 205759-130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is How

    Want a reminder to come back and check responses? Here is how to subscribe to a Notification

    If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.