Does your xml file contain valid directory path to the DTD or XSD file?
By the way, there are multiple validation build-in services in webMethods. What is the reason for java validation? just for the SAX parser?
Here is a snippet of the xml that i am trying to validate
!DOCTYPE meeting_display SYSTEM “file:test1234.dtd”>
Note. leading < is removed since the formatting was getting messed.
I agree there are a few methods in webMethods that help you to validate. But whenevever there is a change in DTD i have to change the RECORD against which i am validating or the schema that i am validating against. But if i use a java code that uses a parser like SAX, all i have to do is move the modified DTD to the appropriate place.
I see where you are getting at. Firstly, the example you are given is not a well-formed xml which should never made it to validation. Even it did, webMethods pharser could still pick up the error. I think if I understand you correctly, its a matter of convienence in the event of schema changing. From what I understand, schema should not be change often after production, even if it did, it should just be an easy delete then import procedure. By creating your own pharser might create a maintance and debuging issue in the future. Maybe just a little over-killed.