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 Wallace   Michael Wallace - Show more from this author
Empowered Data Solutions
http://empowereddatasolutions.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.

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: