TAST tool Menu
TAST Adaptors
Adaptors examples
TAST Integrations
Interesting features
Documentation of technical administration
Modeling recommendations
Training in the TAST tool
TAST tool Menu
TAST Adaptors
Adaptors examples
TAST Integrations
Interesting features
Documentation of technical administration
Modeling recommendations
Training in the TAST tool
This is an old revision of the document!
XML adaptor allow you to interact with a .xml file, offering a set of Predefined Functions so that you can retrieve, check and modify the content of the file. It also allows to save the modified document.
getElementAttrTextByXPath(XPath,Attribute Name): returns element attribute text, searching by XPath and attribute name.
getElementTextByTagName(Tag Name, Position): returns element text, searching by Tag name and Position.
getElementTextByXPath(XPath, Position): returns element text, searching by XPath and Position.
getElementsCountByTagName(Tag Name): returns the number of occurrences of the element, searching by Tag name.
getElementsCountByXPath(XPath): returns the number of occurrences of the element, searching by XPath.
getElementsTextByTagName(Tag Name): returns Array string of elements text, searching by Tag name.
getElementsTextByXPath(XPath): returns Array string of elements text, searching by XPath.
replaceElementTextByTagName(Tag Name, Position, New Text): replaces the Element´s text, searching by Tag Name and Position.
saveXML(): saves the .xml file in the original path.