Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAP XML Parser vs JAVA XML Parser

Former Member
0 Likes
409

Hi,

does anyone knows what's the fastest way to read a XML file throw ABAP or JAVA?

Considering that is DOM in both ways

Thanks in advance to all

Regards

Jaime

1 REPLY 1
Read only

Former Member
0 Likes
349

Hi Jaime,

In my opinion, XML processing in Java is easier than ABAP. There is a large variety of libraries you can use for DOM and XML parsing. Moreover, ABAP XML processing has memory leak issues which I actually encountered - see notes 1229110 and 1081257.

Regarding the performance question - I don't have empiric data, but in general DOM is less efficient than even driven parsing. If you expect large volumes then DOM is not your best choice anyway. This is another argument to do it in Java, event driven parsing is easier, so switching would be smoother if you choose Java.

To wrap up - I don't have hard numbers or the details of your case, but I would normally choose to do it in Java.

Regards,

Dror