Bookshelf Home | Contents | Index | PDF |
Business Processes and Rules: Siebel eBusiness Application Integration Volume IV > Data Mapping Using Scripts > XML Property Set Functions > XML Element AccessorsThese functions provide access to elements represented by property sets. Table 46 presents the parameter for this function. XPSGetTagName()Retrieves the tag name of an XML element. SyntaxReturnsString. If xmlPropSet is null, XPSGetTagName returns XPSSetTagName()This function sets the tag name of an XML element. Table 47 presents the parameters for this function. SyntaxXPSSetTagName (xmlPropSet, tagName)
ReturnsXPSGetTextValue()This function returns the text value of an XML element as a string. Table 48 presents the parameters for this function. SyntaxXPSGetTextValue (xmlPropSet [, defaultIfNull [, defaultIfEmpty]]) ReturnsUsageIf xmlPropSet is null then null is returned. You can use the optional defaultIfNull and defaultIfEmpty arguments to override null and empty string ("") return values. An element's text value is the text between an XML element's start and end tags, excluding child elements. XPSSetTextValue()This function sets the text value of an XML element. Table 49 presents the parameters for this function. SyntaxXPSSetTextValue (xmlPropSet, text)
ReturnsUsageThe text argument should be a string. An element's text value is the text between the element's start and end tags, excluding child elements. XPSGetAttribute()This function retrieves an element's attribute of the given name and returns it as a string. Table 50 presents the parameters for this function. SyntaxXPSGetAttribute (xmlPropSet, name [, defaultIfNull [, defaultIfEmpty]]) ReturnsUsageA null value is returned if xmlPropSet is null or the element does not have the named attribute. The optional defaultIfNull and defaultIfEmpty arguments can be used to override null and empty string ("") return values. XPSSetAttribute()This function sets an element attribute value. Table 51 presents the parameters for this function. SyntaxXPSSetAttribute (xmlPropSet, name, value) ReturnsUsageNo action is taken if any of the arguments are null. XPSGetChildCount()This function returns the number of children of an element. Table 52 presents the parameter for this function. SyntaxReturnsUsageAll children of an element are also elements. XPSGetChild()This function returns the nth child element as specified by the index. Table 53 presents the parameters for this function. SyntaxXPSGetChild(xmlPropSet, index)
ReturnsUsageChild elements are specified using a zero-based index. A value of XPSFindChild()This function returns the first child element with the tagName. Table 54 presents the parameters for this function. SyntaxXPSFindChild (xmlPropSet, tagName)
ReturnsUsageA value of XPSAddChild()This function creates a new child element with the tagName and appends it to the list of xmlPropSet's children. Table 55 presents the parameters for this function. SyntaxXPSAddChild (xmlPropSet, tagName [, textValue]) Returns |
Business Processes and Rules: Siebel eBusiness Application Integration Volume IV |