> Does the EntityResolver in Xerces2 also work for namespaces? Please correct me, if i got your question wrong ? Is "namespace" information passed to application via EntityResolver#resolveEntity() ?
No. If there is an instance file giving location about schema using schemaLocation attribute <book schemaLocation="http://www.foo.com foo.xsd"> ... Xerces2 only passes schemaLocation(foo.xsd) to EntityResolver#resolveEntity() as 'systemId' parameter. Neeraj > Thanks - Edward Jones > On Thu, 11 Jul > 2002, Neeraj Bajaj wrote: > > > > > > It sounds like a simple question, but I have not been able to come up with > > > an answer, either on the web or searching through archives. > > > > > > I have an xml in a relative path from my working directory: > > > src/xml/document.xml > > > > > > Inside of which I have a tag: > > > <!DOCTYPE document SYSTEM "document.dtd"> > > > > > > Where does it look for it? > > > > What parser are you using ? Xerces2 will look for "document.dtd" relative > > to xml > > file. You can use EntityResolver to feed dtd entity to parser. > > > > > > Neeraj > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > -- > **************************************************************************** > Edward R. Jones, Ph.D. | email: [EMAIL PROTECTED] > Texas A&M Univ. - Corpus Christi | phone: (361) 825-5840 > **************************************************************************** -- Neeraj --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
