C
Christian Neuroth
Hi!
I am using XML as an interface to a document management system. I
receive files encoded in a XML response. I use the SAX parser from
XERCES to retrieve the necessary information. Everything works fine in
my local runtime environment.
But running the application in a J2EE environment leads to extreme
performance suffering... Bottleneck seems to be the big number of
mehtod invocations. The profiler delivered the following methods which
are called most of the times: org.apache.xerces.util.XMLChar.isValid
org.apache.xerces.util.XMLChar.isInValid
Is there a strategy to avoid those numerouse invocations? The
retrieved file content is a huge part parsed by the characters()
method and each character is checked with these two (above mentioned)
methods... What can I do? Would DOM be an alternative? Are there
informations on how to build parser solutions for J2ee apps?
Thanks
Christian
I am using XML as an interface to a document management system. I
receive files encoded in a XML response. I use the SAX parser from
XERCES to retrieve the necessary information. Everything works fine in
my local runtime environment.
But running the application in a J2EE environment leads to extreme
performance suffering... Bottleneck seems to be the big number of
mehtod invocations. The profiler delivered the following methods which
are called most of the times: org.apache.xerces.util.XMLChar.isValid
org.apache.xerces.util.XMLChar.isInValid
Is there a strategy to avoid those numerouse invocations? The
retrieved file content is a huge part parsed by the characters()
method and each character is checked with these two (above mentioned)
methods... What can I do? Would DOM be an alternative? Are there
informations on how to build parser solutions for J2ee apps?
Thanks
Christian