on 03-28-2007 4:18 PM
Hello Experts,
in my xi graphical message mapping I have a problem:
In the mapping I fill some target fields with constants which contain ampersands.
In the target message the ampersands (&) appear as "amp;" and this is not accepted by the following system.
The problem occurs as well by testing the mapping as in runtime.
Any idea, how to fix it?
Thanks a lot in advance.
Regards,
Fred
Hi Chilla, Stefan and Bhavesh,
thanx a lot for the fast help.
Now i noticed, what a "xml-greenhorn" I am
Well, it seems that I have to find the mistake in the target system to accept the ampersands.
Best regards,
Fred
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
http://hdf.ncsa.uiuc.edu/HDF5/XML/xml_escape_chars.htm
http://jakarta.apache.org/commons/lang/api/org/apache/commons/lang/StringEscapeUtils.html
If you are doign the FCC in File adapter then we have escape sequence to handle
http://help.sap.com/saphelp_nw2004s/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
Regards
Chilla
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Stefan,
the error is in the target system but the reason is the special character in the target message of the message mapping.
What do you mean by "& has to be escaped"?
The target system is an online product catalogue and with the mapping I create the xml-file, which is the base for this catalogue.
Thanx.
Regards,
Fred
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Fred,
& is an escape characters in XML .
and so, when you want & to be available inside some text in a valid XML , this & internally is stored as & amp ;
( space given here so that it is not escaped by the Forum editor )
This is XML standard and any valid XML will escape an & as above. Your target application should be able to handle this and would need to make changes as this is XML standards.
regards
Bhavesh
I found this in Internet:
http://www.w3.org/TR/xhtml1/guidelines.html#C_12
& is not allowed in XML. It must be replaced with &
Stefan
There is no posibility to fix it, as the error is in the target system.
& has to be escaped in an XML message, this is standard.
What is the target system?
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.