Brian Dunning's FileMaker Custom Functions

EscapeXML ( Text )

Simple function to escape characters for XML

  Average rating: 4.5 (33 votes) Log in to vote

Ibrahim Bittar Torres   Ibrahim Bittar Torres - Show more from this author
Eikonsys, S.A. de C.V.

Share on Facebook Share on Twitter

  Sample input:
EscapeXML ( "John&Grace" )
  Sample output:

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

This function helps to cleanup the XML text from illegal characters before sending it to any Webservice.



Roger Biel   Roger Biel, Casa Grande, AZ
Aug 15, 2011
Not sure what type of machine this works on but does nothing in Windows 7
Ibrahim   Ibrahim, Leon, Mexico
Aug 15, 2011
Hi Roger, When I posted the function it was:

"Substitute ( Text ; [ "&" ; "&amp;" ] ; [ "<" ; "&lt;" ] ; [ ">" ; "&gt;" ] ; [ "\"" ; "&quot;" ] )"

However, it seems that the PHP program made the "translation" and placed again the original symbols.

Please contact me offline if you still have problems with this.



Log in to post comments.


Note: these functions are not guaranteed or supported by Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 15 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: