An open API service indexing awesome lists of open source software.

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.

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











```