cancel
Showing results for 
Search instead for 
Did you mean: 

List of special characters not allowed in payload

Former Member
0 Kudos

Hi Guys ,

I want to have a list of special characters which are not allowed to pass through PI .Could you please help me on this

Thanks

Best Regards

Anshu Kumar

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member186851
Active Contributor
0 Kudos

Hello,

You can refer the below link for invalid characters in XML

http://stackoverflow.com/questions/730133/invalid-characters-in-xml

Former Member
0 Kudos

I want to have a complete list of these characters .

Thanks

anupam_ghosh2
Active Contributor
0 Kudos

The list I provided is the exhaustive one.

Regards

Anupam

anupam_ghosh2
Active Contributor
0 Kudos

Hi Anshu,

                  all characters which invalidate an xml will cause an issue in PI. Provided you are using a mapping/ FCC etc.

Some characters have a special meaning in XML.

If you place a character like "<" inside an XML element, it will generate an error because the parser interprets it as the start of a new element.

This will generate an XML error:

<message>salary < 1000</message>

To avoid this error, replace the "<" character with an entity reference:

<message>salary &lt; 1000</message>

There are 5 pre-defined entity references in XML:

&lt; < less than

&gt; > greater than

&amp; & ampersand

&apos; ' apostrophe

&quot; " quotation mark

Regards

Anupam