I have made an XML-file using the write-command because I need to format it in a way not possible with an XML-port. Some Company names have ampersands (&) in them. Since that sign it not allowed in an XML-file I replace them with '&'. But when the file is created the '&' is back. I've checked that the replacement went fine with
IF CONFIRM(CompanyName) THEN;
It seems as Navision interpret '&' as '&'. Is there any way to force the sign to '&' ?
Thanks in advance.
0
Comments
If it is global then the CONFIRM is actually showing the original Company Name and not your string with the ampersand being replaced.
Try renaming your variable to CompName or something similar.
With which program do you view the File?
I use XML Spy, PSPad and JEdit for deep editing XML Files.
My problem is XMLPort produces four-letter sign instead of one-letter sign. How can I produce one-letter amplersand instead?