I Have a XML File in which I need to load, Edit and then read with the new changes.
My condition is I need anything above the first <hr> to be deleted. From what I've read I can do something like above but I'm unsure how to delete these lines and save the new version.
My Current code looks like
// File to read from
ImportXmlFile.TEXTMODE(TRUE);
ImportXmlFile.OPEN('\\tioga-eng\Shared\NavData_Public\Testing\PCB01213BV-00009TOP.xml');
ImportXmlFile.CREATEINSTREAM(XMLSourceStream);
// File to write no
ImportXmlFile2.TEXTMODE(TRUE);
ImportXmlFile2.WRITEMODE(TRUE);
ImportxmlFile2.CREATE('\\tioga-eng\Shared\NavData_Public\Testing\PCB01213BV-00009TOP2.xml');
ImportXmlFile2.CREATEOUTSTREAM(XMLFileOutStream);
REPEAT
// Here i need to delete lines until I find the node which starts with <hr>
//How would I write this?
UNTIL (XMLSourceStream.EOS)
OR (blnHrFound = TRUE);
*This post is locked for comments
I have the same question (0)