Salesforce

XMLBlobGet (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

XMLBlobGet (Magic xpa 4.x)

Returns the value of an XML element or an XML attribute according to its element path.

Syntax:

XMLBlobGet(generation, device, element path, attribute name, check exists)

Parameters:

generation: A number that represents the task's hierarchic position in the runtime task tree. 0 represents the current task, 1 its immediate ancestor, and so on.

device: A number that represents the sequence number of the I/O device in the current task.

element path: A string that represents the path of an XML element. The syntax is:
/element name[[index]] [/element name[[index]]...]

where:

element name is the name of an XML element. You can assign an alias to the element name. The alias is separated from the element name by a colon symbol (:), for example, al1:My_Element.

index is the index of a specified occurrence of an element that has multiple occurrences. The index value must be greater than 0. Negative values are invalid.

attribute name: The name of the XML attribute.

check exists: (optional). Lets you know whether the function found the requested element/attribute.

Returns:

BLOB. If the XML parsing process is completed successfully, the requested element exists and will return a value. If the XML parsing process was not successful, the function will return the following: If the check exists parameter is True, then the function will return NULL. If the check exists parameter is False or not specified, then the function will return an empty string.

Exceptions:

This function is not supported for Rich Client tasks.

Example:

XMLBlobGet Example

See also:

XML Namespaces

XML Error Codes

XMLGet

The Online Samples project (program XM20)

Reference
Attachment 
Attachment