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



-- 
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

Reply via email to