Hi,

I have a question regarding the marshalled output after setting the doctype
on the marshaller. I know that if I do something like
    marshaller.setDoctype(null, "mydtd.dtd");
    marshaller.setMarshalAsDocument(true);
I'll get something like this
       <!DOCTYPE root-element-name SYSTEM "mydtd.dtd">

However, there are cases where I do not want neither publicId nor systemId,
e.g.
       <!DOCTYPE root-element-name>

I tried marshaller.setDoctype(null, null). It didn't work. The marshaller
totally ignored the doctype declaration in the output.

I am not even sure whether having the doctype declaration without publicId
and systemId is valid or not but this "format" is being used by JXTA
[http://spec.jxta.org/nonav/v1.0/docbook/JXTAProtocols.html] and I would
love to have it working in Castor.

Thanks,
Shing

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to