function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ran67ran67 

Too many script statements: 200001 when Parsing the Xml tree

Hi

in my class am using   the http request am sending the Request and am getting the Response  in the xml tree.

Then i have  parse the xml tree and am able to display the three fields,

Filename,Filesize, date . am able to display only 40 records on the Page when i have more than 40 records am getting  error has Too many script Statments 20001   am Hitting that Error

 

String response1 = res.getBody();

xmldom d;

 D = new xmldom(response1);

for(XMLDOM.Element DOMs:d.getElementsByTagName('Key'))
{
ADDXMLDOM.add(DOMs);
}

for(integer i=0;i<ADDXMLDOM.size();i++)
{

    ss=d.getElementsByTagName('sss')[i].nodeValue;

}

keys.add(ss);