commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jon Steelman" <JSteel...@incomm.com>
Subject RE: [Digester] How to turn off parse's attempt to retrieve dtd?
Date Thu, 16 Jun 2005 05:07:33 GMT
Simon,

How does one know if the DTD has nothing but validation rules?

Thanks,
Jon

Sample DTD content:

<!-- ================= -->
<!-- Top Level Element -->
<!-- ================= -->
<!ELEMENT cardActionVendor (request|response)>
<!-- ================================= -->
<!-- Complex Elements request/response -->
<!-- ================================= -->
<!ELEMENT request  (user,password,cardid,cardAction,merchantID,
locationID,trackingNumber)>
<!ELEMENT response (user,password,cardid,cardAction,merchantID,
locationID,trackingNumber,
responseCode,responseText,responseLog)>
<!-- =============== -->
<!-- Simple Elements -->
<!-- =============== -->
<!ELEMENT user (#PCDATA)>
<!ELEMENT password (#PCDATA)>
<!ELEMENT cardid (#PCDATA)>
<!ELEMENT cardAction EMPTY>
<!ATTLIST cardAction action (activate|deactivate|status) "activate">
<!ELEMENT merchantID (#PCDATA)>
<!ELEMENT locationID (#PCDATA)>
<!ELEMENT trackingNumber (#PCDATA)>
<!ELEMENT responseCode (#PCDATA)>
<!ELEMENT responseText (#PCDATA)>
<!ELEMENT responseLog (#PCDATA)>


-----Original Message-----
From: Simon Kitching [mailto:skitching@apache.org] 
Sent: Wednesday, June 15, 2005 5:27 AM
To: Jakarta Commons Users List
Subject: Re: [Digester] How to turn off parse's attempt to retrieve dtd?

However ignoring the DTD can potentially change the meaning of a
document, and so should only be done when the DTD is known to have
nothing but validation rules in it.

Cheers,
Simn


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message