Brian Dunning's FileMaker Custom Functions

XmlGetTagAttribute ( Xml ; Tag ; Occurrence ; Attribute )

Get an attribute value from the opening tag in xml code.

  Be the first to rate this function Log in to vote

Federico Severin   Federico Severin - Show more from this author
Sevesoftware Engineering
http://www.sevesoftware.it

Share on Facebook Share on Twitter

  Sample input:
XmlGetTagAttribute ( "Margherita" ; "Pizza" ; 1 ; "topping")
  Sample output:
"Tomato, mozzarella cheese."

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

Get an attribute value from the opening tag in xml code.

Parameters:
- Xml: the xml code.
- Tag: the tag you want to analyze.
- Occurrence: the occurrence of the tag in the xml.
- Attribute: name of the attribute you want to retrieve.

Example:
Input: XmlGetTagAttribute ( "Margherita" ; "Pizza" ; 1 ; "topping")
Output: "Tomato, mozzarella cheese."

 

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 20 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: