The Apache project's Xerces-C libraries support the DOM approach to XML parsing.
The entire XML file is imported into memory and the data is held as nodes in a data tree which can be traversed for information.

Install: make install[Potential Pitfall]:
If installing as root (required when installing to directory paths like /opt and /usr), remember that root also requires the environment variable XERCESCROOT. Possible error:

This will install development files such as include header files and libraries in "/opt" so compiler flags and linker flags are required:

Compiler flags: -I/opt/include

Linker flags: -L/opt/lib -lxerces-c

Creating an RPM for Xerces-C libraries:

The downloaded gzipped tar file can be used to generate an RPM:
rpmbuild -ta xerces-c-src_2_7_0.tar.gz

[Potential Pitfall]: RHEL6+ rpmbuild failure
If you get the following error running the command rpmbuild -ta xerces-c-src_2_7_0.tar.gz

error: line 13: Unknown tag: Copyright: Apache

This error was found using RHEL6 which uses a revised version of rpmbuild from that when 2.7.0 was released.

Fix:

Un-tar: tar xzf xerces-c-src_2_7_0.tar.gz

Edit file xerces-c-src_2_7_0/xerces-c.spec
Change line 13 from:

Copyright: Apache

to:

License: Apache

Re-tar: tar czf xerces-c-src_2_7_0.tar.gz xerces-c-src_2_7_0

Build RPM: rpmbuild -ta xerces-c-src_2_7_0.tar.gz

[Potential Pitfall]: If you download the package
"xerces-c-current.tar.gz", you may have to rename it to make it work. The error message will give you a clue as to what to name it.
In this example:
mv xerces-c-current.tar.gz xerces-c-src_2_7_0.tar.gz
Then execute the "rpmbuild" command.

[Potential Pitfall]: If building as a Linux user, you will have to open up the directory permissions of /use/src/redhat/... or build as root user.

[Potential Pitfall]: This did not work with Red Hat Enterprise 5. (RHEL4 and 2.7.0 ok. RHEL5 and 3.0.1 ok. RHEL5 and 2.7.0 not ok) In this case I just downloaded the prebuild RPMs from
http://pkgs.repoforge.org/xerces-c/