Why don't you try to add the doctype statement with url in xml file so that the parser will take the dtd file and parse the xml file. hope this makes some sense Good Luck Vanasri ----- Original Message ----- From: "Andy Clark" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, April 09, 2001 9:42 PM Subject: Re: Location of DTD file
> 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] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
