VTest
11 years agoOccasional Contributor
Large xml parsing in groovy taking time
Hello Friends,
I have a xml which is of about 680 plus elements , as in below format
<Node1>
<Element1 Time1 = X Time2= Y/>
.
.
.
.
.
.
.
.
<Element689 Time1 = X Time2= Y/>
<Element690 Time1 = X Time2= Y/>
</NOde1>
I have to compare that Time1 and Time2 values are not overlaping with any other Times for each element, I wrote the scipt to get the xml holder and compare the values , but due to the large amount of records it is taking more than 2 hours to validate one xml. Any suggestions are invited for efficient way to bring down the processing time.
I have a xml which is of about 680 plus elements , as in below format
<Node1>
<Element1 Time1 = X Time2= Y/>
.
.
.
.
.
.
.
.
<Element689 Time1 = X Time2= Y/>
<Element690 Time1 = X Time2= Y/>
</NOde1>
I have to compare that Time1 and Time2 values are not overlaping with any other Times for each element, I wrote the scipt to get the xml holder and compare the values , but due to the large amount of records it is taking more than 2 hours to validate one xml. Any suggestions are invited for efficient way to bring down the processing time.