This site Web
Home Page | The Sun API | Gallery | InfoSearch | News | Links | Contact Us

Sunlit Design > The Sun API > Documentation > sdxGetv Function


Index


- Introduction
+ Using the Functions
+ User Guide
+ Function Reference
+ Constants

Contact Developer

Downloads

sdxGetv Function

Description

Returns a numeric value extracted from an XML input string.

Syntax

sdxGetv(tagname,valuex)

tagname   String XML Tag name to be extracted.  Case sensitive.


valuex    String value containing XML tags and values.

Return Values

sdxGetv returns a double precision number value.  

If tagname is empty (i.e. equal to "") then the function returns the numeric value of valuex up until the first non-numeric character.

Otherwise, 

    If "<tagname> n </tagname>" is found in the valuex string then n is returned,

Otherwise, 

    0 is returned.

Remarks

Click here to see an XML-Tag - function cross reference.

Example

To find the year value of MJD 34032:
   sdxGetv("Year",sdxTimeUnpackx("<MJD>34032</MJD>")) equals 1952

What is the default value returned by the sdMJDx function for 12 noon UT, 1st September, 2003:
   sdxGetv("",sdMJDx(2003,9,1,12,0,0,0)) equals 52883.5