Home Features Toolbar Library Forum Download Support Tutorial Manual
3. Reference
Triggers
Controls
Variables
System Variables
Global Values
Functions
AutoFill()
Back()
Beep()
CheckLinks()
Checksum()
Click()
Command()
Customize()
DeleteOption()
Enable()
Execute()
ExportLinks()
Forward()
GetFolderIcon()
GetQuery()
GetSystemIcon()
Header()
Highlight()
HistoryMenu()
Home()
IfExactMatch()
IfMatch()
ImportValue()
ImportCaption()
ImportIntValue()
ImportXMLValue()
Length()
LoadMenu()
Menu()
OpenURL()
Options()
PageText()
PlaySound()
PopupManager()
Refresh()
Replace()
ReplaceAll()
Resize()
ResizeClient()
Redraw()
Save()
Search()
SearchBack()
SearchLast()
SearchNext()
SearchPage()
SetCaption()
SetClipboard()
SetFocus()
SetFontSize()
SetIcon()
SetOption()
SetParam()
SetText()
SetStatusText()
SetTooltip()
SetUserAgent()
SetValue()
Show()
Stop()
StripHTML()
ToolbarMenu()
TruncateOption()
UpdateToolbar()
Zoom()
Text Functions
  

GetXMLValue() Function

Imports a value from an XML file.


Syntax:

    ImportXMLValue(url,tag)
    ImportXMLValue(url,tag,offset) - Requires version 2.4.5 and above


Parameters:

ParameterDescription
urlURL of an XML page to import from. The value of url can also be this. In this case the source of the currently loaded page will be used to import from.
tagDefines the name of an XML tag to import. If the tag has parameter values, the parameter name can be appended to the tag. Example: tag:parameter

From version 2.4.5 and above, nested tags can be imported using the syntax: tag,subtag:parameter
offsetSpecifies the record offset. This can be used to retrieve a specific record from an XML file.



Remarks:

  • This function imports the value of the specified XML tag or parameter.
  • The first value found matching the tag and parameter is imported.
  • If a parameter is not specified, the tag value inbetween <tag>...<tag> will be imported.
  • This function only imports the value it does not set it as the caption.
    You can do this by using the SetCaption() function on the onchange trigger.


Example:

Assume that the URL "http://www.somdomain.com/test.xml" returns the following XML data:


    <XML>
    <samples>
    <sample count="1">Value 1</value>
    </samples>
    </XML>


    To import the value of the count parameter, you would use the function:

    ImportXMLValue('http://www.somedomain.com/test.xml',sample:count);

    To import the value of the tag, leave the parameter field blank.

    ImportXMLValue('http://www.somedomain.com/test.xml',sample);


Compatibility

    The offset parameter and the tag,subtag:parameter syntax are available from version 2.4.5 and above.


See Also:

    ImportValue() | ImportIntValue() | ImportCaption() | LoadMenu()


Website Popularity Rank | Build Your Own Toolbar | Free Download | Custom Toolbars | Features | Contact Us

ToolbarBrowser is a freeware project supported by Trellian Limited. | Privacy Policy