Input (Requirements)
- Operation
- Get retrieves data
- Set writes/modifies data
- Delete deletes data
- Length obtain # of elements
- Appendnext appends data at the same level
- Appendchild appends data to a level below
- Input XML file file must have extension .xml
- Input Xpath statement see above link for more explanations
Input (Advanced)
- Output xml file-path must specify output file path for delete, set, and append menus
- String for Value used to specify value for set and append menus
- Strip Blanks removes white spaces before and after the returned value (get)
Output
- Return Value
- String for the get and length operations
- Output file path for set, delete, and append operations
- Return Code
- 0 for successful execution
- 1 for invalid xml input file
- 2 for invalid Xpath statement
- 99 for everything else
Parameter Setting Examples
Below examples are using this sample .xml file
1) Get value with Absolute Xpath
Text from Image
2) Get value with Relative Xpath
Text from Image
3) Get attribute with Relative Xpath
Text from Image
4) Length operation
Text from Image
5) Delete value operation
Text from Image
6) Delete attribute operation
Text from Image
7) Set value operation – modification of existing value
Text from Image
8) Set attribute – modifying existing attribute
Text from Image
9) Set attribute – adding non-existing attribute
Text from Image
10) Append_next operation
Text from Image
11) Append_child operation
Text from Image
Return Code
Code | Meaning |
---|---|
0 | Execution successful |
1 | Parameter error (invalid XML file) |
2 | Reference error (invalid XPath) |
99 | Other errors |