On 1/11/2010 9:44 AM, Kelly Beard wrote:
Having said that, I've stumbled on setExternalSchemaLocation(). Maybe
that's what I'm looking for vs. EntityResolver?
That will work for a particular namespace, but it can be tiresome if you
have many namespaces and schemas to support. Also, it will only support
URLs, whereas an EntityResolver can return a custom InputSource for any
sort of stream.
You should probably use EntityResolver, rather than XMLEntityResolver,
unless you need the extra features the latter supports.
Dave