Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] DocType.setInternalDTDSubset workarounds anyone?

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Wolfgang Hoschek <whoschek AT lbl.gov>
  • To: "Bradley S. Huffman" <hip AT cs.okstate.edu>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] DocType.setInternalDTDSubset workarounds anyone?
  • Date: Mon, 8 Nov 2004 14:16:43 -0800

This in not workable in general, as already pointed out in the mail starting this thread:

Also not that the ugly work-around involving parsing a fake string document with the embedded doctype is not viable: the parse will try to resolve references in the subset, an typically fail here.

Wolfgang.

On Nov 8, 2004, at 2:07 PM, Bradley S. Huffman wrote:

Oops. Well then how about this as a work around, could you use DocType.toXML()
to generate a string, or some other way create a string representation of the
DocType you want. Then to recreate the DocType, append "<root/>" to it
and run the new string thru Builder to recreate the DocType.

Brad

Wolfgang Hoschek writes:

That won't work as I need to build the new DocType in a different
process, possibly remote, and typically at some time in the future.
There is custom serialization in between: process A serializes a
Doctype in a custom way, and some other process B later deserializes
it.





Archive powered by MHonArc 2.6.24.

Top of Page