User Tools

Site Tools


en:xml_adaptor

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:xml_adaptor [2019/07/05 11:04]
tast created
— (current)
Line 1: Line 1:
-====== XML Adaptor ====== 
-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. 
  
-===== Initilization Parameters ===== 
- 
-  * FilePath: complete path of the file 
- 
-===== Predefined Functions (PF): ===== 
- 
- 
-**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. 
en/xml_adaptor.1562324685.txt.gz · Last modified: 2019/07/05 11:04 by tast