General Performance
Don't use XML where it doesn't make sense. XML is not a panacea. You will not get good performance by transferring and parsing a lot of XML files.
Using XML is memory, CPU, and network intensive.
Parser Performance
Avoid creating a new parser each time you parse; reuse parser instances. A pool of reusable parser instances might be a good idea if you have multiple threads parsing at the same time.
The parser configuration may affect the performance of the parser.
For example, if you are interested in evaluating the parser performance
with DTDs you may want to use the DTDConfiguration
(Note: you can build Xerces with DTD-only support using
dtdjars build target).
Parsing Documents Performance
There are a variety of things that you can do to improve the performance when parsing documents:
XML Application Performance
When writing an XML application there are a number of choices you can make that effect performance. Some of the things which will affect the performance of your application are described below.
For more detailed information on best practices for writing XML applications you may want to read the following series of articles:
These three articles discuss general performance tips in addition to ones specifically pertaining to Xerces2.