Extendscript to Parse XML with Doctype data
Hi,
Not able to Parse the sample XML using below script. it will be in contineous loop. Need help on this.
Script File:
var file = new File(Folder(File($.fileName).path).fsName+"//Sample.xml");
file.encoding ="UTF-8";
file.open("r");
XML.ignoreComments = false;
XML.ignoreProcessingInstructions = false;
var xml = new XML (file.read());
newfile.close();
Sample XML File:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE subtask [
<!ENTITY lt "&">
<!ENTITY gt ">">
<!ENTITY amp "&">
]>
<subtask>
<title>General Information</title>
<prcitem1>
<prcitem>
<para>This document provides < repair instructions & for the Fire Extinguisher components.</para>
</prcitem>
</prcitem1>
</subtask>
