https://github.com/robocorp/example-xml-robot
This example robot demonstrates how to parse, query, and modify XML using Robot Framework.
https://github.com/robocorp/example-xml-robot
Last synced: 4 months ago
JSON representation
This example robot demonstrates how to parse, query, and modify XML using Robot Framework.
- Host: GitHub
- URL: https://github.com/robocorp/example-xml-robot
- Owner: robocorp
- License: apache-2.0
- Created: 2022-02-21T08:26:57.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-10-12T11:57:11.000Z (over 3 years ago)
- Last Synced: 2025-07-30T11:59:48.110Z (11 months ago)
- Language: RobotFramework
- Size: 13.7 KB
- Stars: 2
- Watchers: 17
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Robot Framework XML examples
This example robot demonstrates how to parse, query, and modify XML using Robot Framework.
Some of the things you can do include:
- Parse an XML file
- Get elements from XML by XPath
- Get elements from XML by element value
- Get elements from XML by attribute value
- Get element children from XML by XPath
- Access XML element object attributes
- Get attribute values from XML by XPath
- Get named attribute value from XML by XPath
- Save XML to a file
- Remove elements from XML by XPath
- Remove element attributes from XML by XPath
- Set XML element attribute value
- Add attribute to XML element by XPath
- Transform XML using XSLT
See the [XML library documentation](https://robocorp.com/docs/libraries/built-in/xml) for more examples and a complete list of keywords.
## The example XML file
```xml
1000
Spider
8
20
gold
silver
bronze
2000
Quad Arms
4
2
bronze
50000
Eye Spy With Ten Little Eyes
10
midnight
blue
```