Looks like the version we're using is 2.6.  I have two particular
goals I want my applications to do:

1.  Validate the incoming XML based on an external DTD.  My main goal
here is to ignore any whitespace in the XML and look at only the tags
and the text placed between those tags.
2.  Write out any XML to my log files in a 'flat' format (no pretty
printing, etc).

I've attached 3 files.  My sample code, my subject XML and subject
DTD.  When I call parse() on my XML file and I've removed tags that
are marked as required, nothing happens.

I've gotta say that the documentation isn't very good on this stuff,
unless you're a wiz at reading the documentation for the individual
APIs and putting the pieces together, which I have been able to do so
far.

--
Kelly Beard
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<preAuthNotify>
    <transaction msgId="MESSAGE-ID">
        <stationCode>CA0001</stationCode>
        <stationDate>2009-03-12</stationDate>
        <stationTime>14.09.49</stationTime>
        <preAuthNum>93708</preAuthNum>
        <startCode>997232</startCode>
        <dataElementRequest>
            <dataElementId>DRIVER_NAME</dataElementId>
            <dataElementId>UNIT_CODE</dataElementId>
        </dataElementRequest>
    </transaction>
</preAuthNotify>

Reply via email to