Forum Discussion
TanyaYatskovska
12 years agoSmartBear Alumni (Retired)
Hi Rafal,
You may reload the stored XML Checkpoint in the following way:
//JScript
// Load data from MyFile1.xml to MyXMLCheckpoint
XML.MyXMLCheckpoint.Document.load("C:\MyFolder1\MyFile1.xml");
//Compare the loaded data against MyFile2.xml
XML.MyXMLCheckpoint.Check("C:\MyFolder2\MyFile2.xml");
You can use another way - modify the xml content in the XML Checkpoint before comparing. Here is an example:
//JScript
var xmlData = Sys.OleObject("Msxml2.DOMDocument.4.0");
xmlData.async = false;
xmlData = XML.MyXMLCheckpoint.Document;
var nodes = xmlData.selectNodes("//node_to_change");
for(var i = 0; i < nodes.length; i++)
{
nodes.item(i).childNodes.item(0).data = "<new data>";
}
Related Content
- 8 years ago
- 6 years ago
- 27 days ago
Recent Discussions
- 5 days ago
- 5 days ago