IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

How to hide doctype from Generated Java code? Options · View
jodekirk
Posted: Thursday, December 14, 2006 3:32:03 PM
Rank: Newbie

Joined: 12/14/2006
Posts: 4
I mapped an MS Access DB to a DTD file, and the output works fine. However, I do not want it to generate the XML with a doctype inside. Is there anyway to generate the output without a doctype declaration in the output XML file?
island
Posted: Wednesday, December 20, 2006 12:58:33 PM
Rank: Newbie

Joined: 10/28/2002
Posts: 1,283
Location: AT
Dear Jeremy,

if you generate java code for your mapping all you have to do is to comment out the following line in the MappingMapToXXX.java file (where xxx is the name of your dtd)

XXXDocTargetObject.setDTDLocation("C:/DOCTYPE/example.dtd");

Joku
Posted: Wednesday, March 14, 2007 8:36:14 AM
Rank: Newbie

Joined: 2/21/2007
Posts: 2
Location: CALIFORNIA
How do I do this if I've selected XSLT as the output?
Users browsing this topic
guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.