I need to create a DOM tree (org.w3c.dom.Document object) to construct my
Once all the elements are added, I have to add the DOCTYPE to my object
and then convert it to string.
I know the way using com.sun.xml.tree.XmlDocument package. But because of
clash with some other packages, I cant use this package.
Anyone, who knows the way to create the Document object without using the
I know the way to create the Document object using
javax.xml.parsers.DocumentBuilder, but don't know how to add the DOCTYPE in
that and how to convert that to String ultimately.
I am totally stuck up because of this. Your help will be really