RE: Telling a parser to validate a document with a DTD non specified in the document

2002-01-08 Thread Evert Haasdijk
> > I remember the origin of the problem, and why the external subset > was not written in the XML by the supplier of the message : > because we then had problems with the real localisation of the > file, in the machine where the app using Xerces runs. > For example, the line for the DTD which was

RE: Telling a parser to validate a document with a DTD non specified in the document

2002-01-07 Thread Erik Rydgren
with a DTD non specified in the document > > >Sorry for the repetition, but I 'll be surprised if there wasn't a > >way to tell the parser the DTD to use ? > > Prepare to be surprised; as far as I know, that is not supported. No problem, I was prepared ;-) >

Re: Telling a parser to validate a document with a DTD non specified in the document

2002-01-07 Thread Laurent PETIT
> > >Sorry for the repetition, but I 'll be surprised if there wasn't a > >way to tell the parser the DTD to use ? > > Prepare to be surprised; as far as I know, that is not supported. No problem, I was prepared ;-) > In parsers which support plug-in "entity resolvers" you can (ab)use

Re: Telling a parser to validate a document with a DTD non specified in the document

2002-01-07 Thread Laurent PETIT
Hello Evert, From: "Evert Haasdijk" <[EMAIL PROTECTED]> > Laurent, > > You can set up an empty document that does have the DOCTYPE, create a parser > for that and reuse that parser for new documents. > > Here's an example of what that would look like that Alberto Massari sent me > ages

RE: Telling a parser to validate a document with a DTD non specified in the document

2002-01-07 Thread Evert Haasdijk
t PETIT [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 07, 2002 18:17 PM > To: [EMAIL PROTECTED] > Subject: Telling a parser to validate a document with a DTD non > specified in the document > > > Hello, > > I'm using Xerces C++ on AIX. (Version 1.5.2). > &g

Telling a parser to validate a document with a DTD non specified in the document

2002-01-07 Thread Laurent PETIT
Hello, I'm using Xerces C++ on AIX. (Version 1.5.2). My program receives an XML document. I want to validate this document. The problem is that the line for the DTD is not present : ... The method used in the project is to add a line for the DTD : ... This sounds wei