Doug Miller wrote:
> A remote client is sending me an XML string.  It contains a reference to

Is there a base URI for the remote client? If so, then set
the systemId on the input source that you hand to the parser
so that the parser can figure out the relative path of the
DTD. For example:

  Reader reader = new StringReader(XML_STRING);
  InputSource source = new InputSource(reader);
  source.setSystemId(REMOTE_HOST_URI);

Else, follow Milind's suggestion of using an EntityResolver.

-- 
Andy Clark * IBM, TRL - Japan * [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to