$xmltext =
ExtractXmlTag ( <xmldata>,<starting tag>, <ending tag>,[offset] )
Used to retrieve the text in which the tag should be searched for.
Parameters
<xmldata>
Text to be retrieved along with starting and ending tags.
<starting tag>
Signifies the beginning tag after which the text is defined.
<ending tag>
Signifies the closing tag at the end of the text.
[offset]
Designs the position of the xmldata from which the search should begin.
Default value of offset is 0.
Return Value
Returns the text as per the specified offset value.
Example
MAIN:
$xmltext = ExtractXmlTag("<b>Welcome to Xtend!!</b><b>Hello</b>","<b>","</b>",0)
display $xmltext
hangup
goto MAIN
.
.
.
- $xmltext will contain "Welcome to Xtend!!".
- If offset is given as 1 then $xmltext will contain "Hello".