Issue in unterminated regular expression literal with eval() function
Hi,
I am creating a fillable form on Acrobat Pro DC (acroform) and I would like to parse my xml but in this line
var strData = util.stringFromStream(myXMLFile);
var xmlData = eval(strData.replace(/^\<\?.*\?\>\s*/,""));
I am getting
"SyntaxError: unterminated regular expression literal
182:Document-Level:PopulateDropdown"
it seems the eval() is causing the error but if I remove eval() I will have an issue in this line:
var nLen = xmlData.child("Branch").length();
I am getting this:
TypeError: xmlData.child is not a function
13:Document-Level:PopulateDropdown
Any help will be much appreciated.
Thanks.
