Hi:
I'm hoping someone can point me in the right direction. I'm using AXIOM to
parse an XML payload returned to me by a server (over HTTP). The
payload looks something like this:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE example SYSTEM "example.dtd">
<example version="1.0">
<response>
<code>001</code>
<message>This is some helpful message</message>
</response>
</example>
The received payload is stored to a string and I am trying to use *AXIOMUtil
*.*stringToOM* to build up my OMElement. The problem I am observing is that
AXIOM is trying to locate the "example.dtd" file presumably to validate the
contents. However, it seems to look no further than the folder containing
the JVM and so throws an exception. I have the DTD file, but I need a way to
direct AXIOM to the correct location. Oh, and when I manually copy the DTD
to the JVM's folder AXIOM is fine. However, this is not a practical solution
for production.
I've been looking through the javadocs for an alternate approach, but can't
seem to find anything that provides what I'm looking for. A nudge in the
right direction would be greatly appreciated.
Cheers,
Paul