Function overview
Prototype
xmlFirstTagName (
xml )
Parameters
xml
Description
Tags:
xml
results the first name in the xml text
Examples
Sample input
<contact><ID>2354</ID><Lastname>Frank</Lastname></contact>
Sample output
contact
Function code
Let([
a=Position(xml ; "<" ; 1 ; 1 );
b=Position(xml ; ">" ; 1 ; 1 ) ];
Middle ( xml ; a + 1 ; b - a - 1))
// ===================================
/*
This function is published on FileMaker Custom Functions
to check for updates and provide feedback and bug reports
please visit http://www.fmfunctions.com/fid/238
Prototype: xmlFirstTagName( xml )
Function Author: konrad (http://www.fmfunctions.com/mid/224)
Last updated: 12 December 2009
Version: 1
*/
// ===================================
Let([__LITBR____LITBR__a=Position(xml ; "<" ; 1 ; 1 );__LITBR__b=Position(xml ; ">" ; 1 ; 1 ) ];__LITBR____LITBR__Middle ( xml ; a + 1 ; b - a - 1))__LITBR____LITBR__// ===================================__LITBR__/*__LITBR____LITBR__ This function is published on FileMaker Custom Functions__LITBR__ to check for updates and provide feedback and bug reports__LITBR__ please visit http://www.fmfunctions.com/fid/238__LITBR____LITBR__ Prototype: xmlFirstTagName( xml )__LITBR__ Function Author: konrad (http://www.fmfunctions.com/mid/224)__LITBR__ Last updated: 12 December 2009__LITBR__ Version: 1__LITBR____LITBR__*/__LITBR__// ===================================
Login or register to comment
Create a new account with fmcustomfunctions.com or login to post a comment.