Tagged: Ampersand problem in XMl file
September 22, 2017 at 5:07 am #170
We are linking Swithmail to our database of suppliers and customers. We generate an xml file, then call Swithmail to use that xml file. The subject line contains the supplier or customer name. If the name contains an ampersand (Jim Brown & Sons Ltd), the email is not sent. When we try to load the xml file via the GUI, the ampersand position is highlighted as a load error. We can modify our customer details to, say Jim Brown + Sons, but it looks a bit odd. Any ideas or workarounds?
October 16, 2017 at 7:52 am #179tbareKeymaster1 pt
Hey, Gil –
Sorry for the late reply on this. I wasn’t getting email alerts on new posts for a bit. Are you still having this issue?
October 16, 2017 at 8:13 am #181
It’s ok, we sorted it.
We have to use & whenever we have an ampersand in customer name.This involves detecting the & and then substituting it with & . All works fine now.
October 16, 2017 at 8:57 am #184
The previous post interfered with my typing.
Looks like the forum actually strips out stuff in the same way that swithmail does!
To get an ampersand to show, we have to type an ampersand followed by the letters amp followed by a semi colon (all as a single word)
October 16, 2017 at 9:05 am #187tbareKeymaster1 pt
Yeah – that’s the HTML code for ampersand — in the forum, yuo could have used the “code” tag:
&and it would stay. In SwithMail, if you have the HTML flag set, there are characters that need to be in html format to be retained (
& amp;being the main one). 🙂
Regardless, glad you got it sorted! 🙂
Edit – wow – even in code tags it broke it. Guess I need to check that out! :-/
- You must be logged in to reply to this topic.