On Tue, 2010-08-17 at 18:04 -0500, Steve Ebersole wrote: > On Tue, 2010-08-17 at 17:15 -0400, Michael Glavassevich wrote: > > > Oh, I need this to happen even if there is already a DTD. It will > > in > > > all likelihood have a DTD declared. I just need to inject some > > entities > > > into it. > > > > Unless you've written your own XML parser how can you reliably do > > that? > > I am not an XML expert, so I have no idea how I can expect it to be > reliable. I work a lot on trial-and-error. That said, this works, or > at least works in all cases I and users have encountered so far (this > parse="text" situation notwithstanding): > > http://github.com/sebersole/jdocbook-core/blob/master/src/main/java/org/jboss/jdocbook/util/FileUtils.java#L93
So if I understand correctly, the EntityResolver2.getExternalSubset approach is not going to work here. Which takes me back to the question of a custom XIncludeHandler and (a) whether that is a valid option and (b) how to properly make sure my custom XIncludeHandler gets used in the pipeline. -- Steve Ebersole <st...@hibernate.org> http://hibernate.org --------------------------------------------------------------------- To unsubscribe, e-mail: j-users-unsubscr...@xerces.apache.org For additional commands, e-mail: j-users-h...@xerces.apache.org