|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Java 1.4, xerces DOMParser
Hi all, I am having some problems. I am trying to set the DTD the DOMParser uses. I understand you can turn off the DTD validation using the setFeature() method. However what I want to do is programatically specify a dtd other than the one in the xml document. E.g. the xml document contains the following; <!DOCTYPE casegroup SYSTEM "definition.dtd"> I want to turn override that and use my own dtd e.g c:\mydtds\correct.dtd Anybody got any ideas??? Thanks in advance Chris |
|
#2
|
|||
|
|||
|
I have the same problem
Chris,
I have the same problem. Did you find an answer??? I found a response of another message that gave me a hint: I will try processor.setBaseURL (I don't know what type processor is). Thanks, Evandro |
|
#3
|
|||
|
|||
|
Hi,
No, I don't think I did get an answer, so I'm not even sure if I bothered with that approach (It was a while ago on a different project and I've forgotten). Sorry I can't be more help. Chris |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > DTD setting with xml |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|