on 12-27-2010 7:04 PM
Dear Experts,
We have configured SRM for XML output and transfer to vendor via PI though HTTP post.
However our XML has special characters in it for example & in the following tag:
<StreetName>100 Main Street & Commercial Drive</StreetName>
What we need to send is the following:
<StreetName>100 Main Street & Commercial Drive</StreetName>
Has anyone run into this issue before?
Hi,
& can be replaced by "& amp ; "
<StreetName>100 Main Street & Commercial Drive</StreetName>
view this message in plain text to see the result
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
try using this on your text fields to remove the ampersand:
*----
form check_string using l_intext type any l_outtext type any.
*----
data: ls1 type string,
ls2 type string.
if l_intext ca '&'.
split l_intext at '&' into ls1 ls2.
if ls2 ca '&'.
perform check_string using ls2 l_outtext.
else.
concatenate ls1 ' &' ls2 into l_outtext.
endif.
else.
l_outtext = l_intext.
endif.
endform.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.