Brian Dunning's FileMaker Custom Functions

RemoveEmptyNodes ( xml )

This function goes through XML and returns a trimmed down version that has no empty nodes in it.

  Average rating: 4.7 (11 votes) Log in to vote

Michael A Wallace   Michael A Wallace
Richard Carlton Consulting
www.rcconsulting.com

Share on Facebook Share on Twitter

  Sample input:
RemoveEmptyNodes ( "Pat" ) &¶&
RemoveEmptyNodes ( "Pat" )
  Sample output:
Pat
Pat

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

This function goes through XML and returns a trimmed down version that has no empty nodes in it. I use it when capturing data with a function like GetFieldsAsXML that will take a list of fields (like from the FieldNames function) and return XML in the format of Data

 

Comments

Log in to post comments.

 

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

Under construction. Email me your wish list for improvements.