Robot

Robot Framework Xml Examples

This example robot demonstrates how to parse, query, and modify XML using Robot Framework.

Robocorp

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 for more examples and a complete list of keywords.

The example XML file

Technical information

Last updated

12 October 2022

License

Apache License 2.0

Dependencies