xtagvalue(
TEXT
,
TAGNAME
)

The xtagvalue( function extracts the text from the first matching HTML or XML tag.


Parameters

This function has two parameters:

text – the text containing tags

tagname – name of the tag value


Description

This function extracts the text from the first matching HTML or XML tag.

xtagvalue("<red>34</red><blue>60</blue><green>10</green>","red") ☞ 34
xtagvalue("<red>34</red><blue>60</blue><green>10</green>","green") ☞ 10
xtagvalue("<red>34</red><blue>60</blue><green>10</green>","blue") ☞ 60

Note: This function is equivalent to:

tagdata(xtext,"<"+tagname+">","</"+tagname+">",1)

See Also


History

VersionStatusNotes
10.0No ChangeCarried over from Panorama 6.0.