The string "--" (double-hyphen)in Mapper comments corrupt a Process Definition in Designer project.

The string "--" (double-hyphen)in Mapper comments corrupt a Process Definition in Designer project.

book

Article ID: KB0094152

calendar_today

Updated On:

Products Versions
TIBCO Designer -
Not Applicable -

Description

Description:
  1. Create a new project in Designer.
  2. Add a new process definition.
  3. In the new process, add a Mapper activity.
  4. Create a simple schema for the Mapper.
  5. In the mapper input editor, insert a comment which contains "--" (double hyphens).
  6. Apply and Save the project.
  7. Close the project and reopen the project.

Symptoms:
Using double hyphens(" -- " )  in Mapper comments corrupts the project.

Cause:

As per the XML specification, it is illegal to have a double hyphen in a comment for compatibility with SGML. Refer to http://www.w3.org/TR/REC-xml/#sec-comments.


--------------------Start Excerpts-------------------------

2.5 Comments

[Definition: Comments may appear anywhere in a document outside other markup; in addition, they may appear within the document type declaration at places allowed by the grammar. They are not part of the document's character data; an XML processor MAY, but need not, make it possible for an application to retrieve the text of comments. For compatibility, the string " -- " (double-hyphen) MUST NOT occur within comments.] Parameter entity references MUST NOT be recognized within comments.

Comments
[15]   Comment   ::=   '<!--' ((Char - '-') | ('-' (Char - '-')))* '-->'

An example of a comment:

Note that the grammar does not allow a comment ending in --->. The following example is not well-formed.

Issue/Introduction

The string "--" (double-hyphen)in Mapper comments corrupt a Process Definition in Designer project.

Resolution

Avoid using double hypens in comments section -  As per the XML specification, it is illegal to have a double hyphen in a comment for compatibility with SGML. Refer to http://www.w3.org/TR/REC-xml/#sec-comments.

Additional Information

http://www.w3.org/TR/REC-xml/#sec-comments