User Tools

Site Tools


xml_adaptor

Differences

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

Link to this comparison view

xml_adaptor [2023/05/08 12:52]
montse [Predefined Functions (PF):]
xml_adaptor [2024/12/10 13:03] (current)
montse [Predefined Functions]
Line 1: Line 1:
 ====== XML Adaptor ====== ====== XML Adaptor ======
-=====Introducción=====+=====Introduction=====
 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. 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 ===== ===== Initilization Parameters =====
  
-  * ** FilePath:​** ​Complete ​path of the file+  * ** FilePath:​** ​complete ​path of the file
  
-===== Predefined ​Functions (PF): =====+===== Predefined ​functions ​=====
  
   ​   ​
-  * **generateFileAsEvidence()**:​ The function generates a copy of the XML file in that moment, to be added as evidence. It does not require input parameters. 
  
-  * **getElementAttrTextByXPath(XPath,​Attribute Name)**: Returns element attribute textsearching by XPath and attribute name.+  * **generateFileAsEvidence()**: the function generates a copy of the XML file in that momentto be added as evidence. It does not require input parameters.
  
-  * **getElementTextByTagName(Tag NamePosition)**: Returns ​element text, searching by Tag name and Position.+  * **getElementAttrTextByXPath(XPath,Attribute Name)**: returns ​element ​attribute ​text, searching by XPath and attribute name.
  
-  * **getElementTextByXPath(XPath, Position)**: ​Returns ​element text, searching by XPath and Position.+  * **getElementTextByTagName(Tag Name, Position)**: ​returns ​element text, searching by Tag name and Position.
  
-  * **getElementsCountByTagName(Tag Name)**: Returns the number of occurrences of the element, searching by Tag name.+  * **getElementTextByXPath(XPath, Position)**: returns ​element ​text, searching by XPath and Position.
  
-  * **getElementsCountByXPath(XPath)**: Returns ​the number of occurrences of the element, searching by XPath.+  * **getElementsCountByTagName(Tag Name)**: returns ​the number of occurrences of the element, searching by Tag name.
  
-  * **getElementsTextByTagName(Tag Name)**: Returns Array string ​of elements text, searching by Tag name.+  * **getElementsCountByXPath(XPath)**: returns the number ​of occurrences of the element, searching by XPath.
  
-  * **getElementsTextByXPath(XPath)**: Returns Array string of elements text, searching by XPath.+  * **getElementsTextByTagName(Tag Name)**: returns array string of elements text, searching by Tag name.
  
-  * **replaceElementAttrTextByXPath**: Replaces the element attribute ​text, searching by Xpath and attribute 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.+  * **replaceElementAttrTextByXPath**: replaces ​the element attribute ​text, searching by Xpath and attribute name.
  
-  * **replaceElementTextByXPath**: Replaces ​the element text, searching by Xpath and Position.+  * **replaceElementTextByTagName(Tag Name, Position, New Text)**: replaces ​the element'​s ​text, searching by Tag Name and Position.
  
-  * **saveAs**: Saves XML to the user path. Saves to the log folder if no path is specified.+  * **replaceElementTextByXPath**: replaces ​the element text, searching by Xpath and Position.
  
-  * **saveXML()**: Saves the .XML file in the original ​path.+  * **saveAs**: saves XML to the user pathSaves to the log folder if the path is not specified.
  
-  * **xmlToString**: ​Save XML from the application memory to a String.+  ​* **saveXML()**:​ saves the .xml file in the original path. 
 + 
 +  ​* **xmlToString**: ​saves XML from the application memory to a String.
  
xml_adaptor.1683550335.txt.gz · Last modified: 2023/05/08 12:52 by montse