Skip to Content
author's profile photo
Former Member

Ampersand ('&') in XML - Mapping error

My Scenario is File to File. XI ( we are PI7.0) receives XML File and I'm splitting ( transorming ) into multiple files in Mapping. Scenario is failing because data contains '&' ( for example K&K Company ). Even XMLFox or XMLSpy gives error saying & is illegal character. Do I have to use encoding 8859-1 instead of utf-8 ? Does that solves my problem ?. Or Do I have to setup or change JDK ?

Can someone help me what I have to do to fix this error?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Dec 21, 2006 at 08:10 PM

    The character & is not allowed in XML. The program which creates your XML file has to provide & instead. If you cannot change the sender, than you have to write a Java mapping program which escapes the &

    Regards

    Stefan

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Dec 22, 2006 at 02:29 PM

    Sorry..I was not able to reward points. I can not see tabs to award points as we used in SDN forums earlier. How Can I award points ?

    Add comment
    10|10000 characters needed characters exceeded