some more code that i use and that u hopefully will find useful, Dave.

cheers,

Peter
 
> Peter,
> 
> Thank you for that code I found it very useful.  One thing I 
> noticed which
> I can't find documented anywhere ...
> 
> 
> >>   oformat.setDoctype(null, document.getDoctype().getSystemId());
> 
> I modified the line above to say
> 
> 
> oformat.setDoctype(null, "file:/c:/temp/new.dtd");
> 
> It seems that if the document had no doctyope already defined 
> this works
> okay BUT if it does then using the setDoctype does get used 
> (the original
> DTD is retained).  Can't find any note to this effect in the Javadoc.
> 
> Do you know why this is or better still a way to override the 
> existing DTD
> with the specified one?
> 
> Cheers ... Dave
> 
> P.S. I am using XML4J 3.0.1 based on Xerces 1.2.0
> 
> Dave Barfield
> e-Business Integration Technology
> IBM Hursley, MP 188, Hursley Park, Winchester, SO21 2JN, England
> Phone: Internal 7-245131, external 44-1962-815131
> E-mail: [EMAIL PROTECTED]

<<attachment: XMLworld.zip>>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to