xmlFirstTagName ( )

Function stats

Average user rating
224
238
9999
Support
FileMaker 7.0 +
Date posted
12 December 2009
Version
1
Recursive function
No

Author Info
 konrad

10 functions

Average Rating None

author_avatar



 

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

*/
// ===================================

 

 

 

 


Login or register to comment

Create a new account with fmcustomfunctions.com or login to post a comment.