Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] XOM 1.1: Internal DTD Subsets

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Harold <elharo AT metalab.unc.edu>
  • To: John Cowan <jcowan AT reutershealth.com>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] XOM 1.1: Internal DTD Subsets
  • Date: Thu, 06 Jan 2005 17:59:00 -0500

John Cowan wrote:

A better tactic, I think, is to add a method getSealedInternalDTDSubset()
which returns a SealedInternalDTDSubset. This is a trivial class with
no public constructor and only toString, hashCode, and equals methods.
Then setSealedInternalDTDSubset(SealedInternalDTDSubset s) can be
made public.


I don't think this solves Wolfgang's problem. He's got an internal DTD subset stored off in a non-XML format and he needs to get it into XOM. He can't just parse it through the Builder because it may point to unavailable files. Am I missing something? Is there a way he could use SealedInternalDTDSubset?

Currently for some uses you can create a Document with your internal DTD subset in a String, build a Document from that, and then detach or clone the DocType you get there to put it in a new document. The problem is this doesn't quite work when the entities point at unavailable URIs.

--
Elliotte Rusty Harold elharo AT metalab.unc.edu
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim




Archive powered by MHonArc 2.6.24.

Top of Page