Property | Description |
---|---|
Dynamic XPath or XML Source Document | Dynamic XPath or Dynamic XML source. |
Source XML Document | Path to XML document. |
Action | Description |
---|---|
PutMessage | Extracts data from an XML source document (based on the XPath expression provided) and prepares the result set. PutMessage lists an optional source message parameter containing either an XPath expression or an XML source (URL). The PutMessage action contains two step properties: XML source and XPath expression. You can pass the XML source or XPath expression at design time or through Source Message at run time. |
GetMessage | Iterates through the result set. This action should be called after the PutMessage action. The GetMessage action requires a target DJMessage object. The maximum size limit for DJMessage is 2 GB. |
Action | Parameter | Description |
---|---|---|
GetMessage PutMessage | Message | Message string. |
Action | Property | Description |
---|---|---|
PutMessage | Source Message Input | Provides the source message. Default value is XML Source |
PutMessage | XPath Expression | XPath Expression. There is no default value. |
XML Source | XPath Expression | Description | Example |
---|---|---|---|
Combination of Design and Run Time | |||
Source Message (Content) | Expression | Provide XML content at run time | srcMsg.body=fileread("C:\people.xml") |
Provide XPath expression at design time | //Person[@title="doctor"] | ||
Source Message (URL) | Expression | Provide URL to the XML file at run time | srcMsg.Body = "C:\people.xml" |
Provide XPath expression at design time | //Person[@title="doctor"] | ||
URL | Source Message (Expression) | Provide XML content at design time | C:\people.xml |
Provide XPath expression at run time | srcMsg.Body="//Person[@title="doctor"]" | ||
Design Time | |||
URL | Expression | Provide URL to the XML file at design time | C:\people.xml |
Provide XPath expression at design time | //Person[@title="doctor"] |
Code | Name | Description | Reason |
---|---|---|---|
1 | ERR_EOF | End of file reached | No more items to return |
4 | ERR_READERR | Component not initialized | XPath is not initialized. ERR_READERR occurs when GetMessage is called before PutMessage. |
34 | ERR_INVALID | Invalid XPath expression or XML source file | Error occurred while processing XPath expression or loading XML source Possible reasons: • Invalid XPath expression or XML source • Empty field value |
50 | ERR_UNSPECIFIED | Unknown error | Unknown error identified by the component |