Property | Description |
|---|---|
Dynamic XPath or XML Source Document | Dynamic XPath or Dynamic XML source. |
Source XML Document | Path to XML document. |
Action | Description |
|---|---|
IsConnected | Indicates whether the component currently has an active and valid connection. This option is available only in version 1.4.0. |
Disconnect | Closes an existing connection and performs clean up as needed. This option is available only in version 1.4.0. |
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 size limit for DJMessage is 25 GB or more, though actual support may vary depending on system resources and available memory. |
Action | Parameter | Description |
|---|---|---|
PutMessage | Message | The DJMessage parameter for the PutMessage action can be used to load or input a message into the XPath Iterator component. |
GetMessage | Message | The DJMessage parameter for the GetMessage action retrieves a message from the XPath Iterator component and loads it into the body of the specified DJMessage. |
Action | Property | Description |
|---|---|---|
PutMessage | Source Message Input | Describes what the message argument contains. Potential values are: • XML Source - (Default) Message contains an XML body or is empty. • XPath Expression - Message contains an XPath expression or is empty. • Content Ignored - The source message is ignored by the PutMessage action. This option is available only in version 1.4.0. |
PutMessage | XPath Expression | XPath expression that will be evaluated against the loaded XML document. Displayed if Source Message Input is set to XML Source or Content Ignore. |
PutMessage | XML Source | Path to XML source file. Displayed if Source Message Input is set to XPath Expression or Content Ignore. |
GetMessage | Message Output Type | Selects the content that will be returned in the provided message. Potential values are: • Next Matching Value - Output message contains the next match from the latest XPath expression evaluation or empty if no previous. • Match Count - Output message contains the remaining match count. |
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 |