xmlWithoutFirstTag ( )

Function stats

Average user rating
224
240
9999
Support
FileMaker 7.0 +
Date posted
12 December 2009
Last updated
12 December 2009
Version
Recursive function
No

Author Info
 konrad

10 functions

Average Rating None

author_avatar



 

Function overview

Prototype

xmlWithoutFirstTag  ( xml )


Parameters

xml  


Description

the xml without the first tag and its content
-- part or xmlGetH / xmlSetH ---
requires also xmlTagN.valuePosEnd ( ) !
[fmfunctions.com does not let me add it to required list..]

Examples

Sample input

<contact><ID>2354</ID><Lastname>Frank</Lastname></contact><letter><ID>234</ID></letter>


Sample output

<letter><ID>234</ID></letter>

 

Function code

Let([

name =xmlFirstTagName ( xml );
start=xmlTagN.valuePosEnd ( name ; xml ; 1 ) + Length ( name ) + 4 ;
tagR= Middle( xml ; start ; Length ( xml ) - start + 1) ];


TrimSpaceCR ( tagR)

)

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

    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/240

    Prototype: xmlWithoutFirstTag( xml )
    Function Author: konrad (http://www.fmfunctions.com/mid/224)
    Last updated: 12 December 2009
    Version: 1.1

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

 

 

 

 


Login or register to comment

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