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
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.

Under construction. Email me your wish list for improvements.