dcsimg
Validating XML using a DTD packaged in a JAR file
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Andrew_Peirson
Posted On:   Monday, September 20, 2004 12:38 AM

Hi all, I have been struggling to validate an XML file based on the OFX standard using the ofx202.dtd file that can be downloaded from their website. I am not entirely sure how I should reference the DTD so that the parser can find it. I'm not sure of the system-id, public-id etc required to refer to it publicly and would like to provide a locally cached version of the dtd in a war file anyway. Unfortunately, the parser doesn't seem to be able to find an external dtd located in a war file or jar file which are packageded as part of an ear. Does anyone have any idea how I can get round this problem? I have seen posts elsewhere that suggest creating your own entity resolver, but not sure if this is the right solution. An   More>>

Hi all,


I have been struggling to validate an XML file based on the OFX standard using the ofx202.dtd file that can be downloaded from their website. I am not entirely sure how I should reference the DTD so that the parser can find it. I'm not sure of the system-id, public-id etc required to refer to it publicly and would like to provide a locally cached version of the dtd in a war file anyway. Unfortunately, the parser doesn't seem to be able to find an external dtd located in a war file or jar file which are packageded as part of an ear.


Does anyone have any idea how I can get round this problem? I have seen posts elsewhere that suggest creating your own entity resolver, but not sure if this is the right solution. Any suggestions, code or referred articles will be much appreciated.


Thanks in advance,
Andy.

   <<Less
About | Sitemap | Contact