Re: XNI pipeline with XIncludeHandler before DTD validation

2005-03-10 Thread Michael Glavassevich
nfiguration with the following > document pipeline: > > NamespaceScanner -> XIncludeHandler -> DTDValidator -> SchemaValidator > > Obviously, my point is to have xi:include elements resolved before DTD > validation so that I don't need to modify the DTD to recogni

XNI pipeline with XIncludeHandler before DTD validation

2005-03-07 Thread Benoit Maisonny
Hi, I'd like to have a custom XNI parser configuration with the following document pipeline: NamespaceScanner -> XIncludeHandler -> DTDValidator -> SchemaValidator Obviously, my point is to have xi:include elements resolved before DTD validation so that I don't need t

RE: Use DTD Validation

2003-06-24 Thread Benson Cheng
I tried out the sample XMLGrammerBuiler.java, it still requires the defined within the document.  Any other ideas?   thanks. -Original Message-From: Maksym Kovalenko [mailto:[EMAIL PROTECTED]Sent: Monday, June 23, 2003 10:43 AMTo: [EMAIL PROTECTED]Subject: Re: Use DTD Vali

Re: Use DTD Validation

2003-06-23 Thread Maksym Kovalenko
Take a look at http://xml.apache.org/xerces2-j/faq-grammars.html#faq-3 Benson Cheng wrote: Is there a similar property http://apache.org/xml/properties/schema/external-schemaLocation that for DTD?  Basically I want to validate the documents against DTD, but there

Use DTD Validation

2003-06-23 Thread Benson Cheng
Is there a similar property http://apache.org/xml/properties/schema/external-schemaLocation that for DTD?  Basically I want to validate the documents against DTD, but there no DOCTYPE defined within the document, so I want to set a DTD through the property or feature.   Thanks, Benson.

Conditional DTD validation?

2003-01-28 Thread Mark Womack
Is there any way to have the XMLReader perform DTD validation conditionally? I would like it to perform DTD validation if it finds a DOCTYPE entity, and do anything if it does not. Right now I enable validation before parsing any xml file, but if no DOCTYPE is found, I get the following exception

RE: DTD Validation

2003-01-22 Thread Keeney, Thomas
Keeney, Thomas [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 22, 2003 2:23 PM To: '[EMAIL PROTECTED]' Subject: DTD Validation Hello, I'm using the SAXParser with DTD validation enabled in Xerces 2.2.1. Currently I have to include a document type definition in the xml document fo

DTD Validation

2003-01-22 Thread Keeney, Thomas
Hello, I'm using the SAXParser with DTD validation enabled in Xerces 2.2.1. Currently I have to include a document type definition in the xml document for validation to work. However, does anyone know of a way that I could validate an XML document WITHOUT a document type definition hard

Re: Turning off DTD validation but allow Schema validation ( was Re: Schema validation with Xerces and JAXP )

2003-01-11 Thread Jesus M. Salvo Jr.
that Xerces _can_ do Schema validation _without_ DTD validation [EMAIL PROTECTED] wrote: Hi Jesus, This is a schema validation error. (You can tell; cvc == complexType validation constraint). It's produced when Xerces can't find your schema file. Usually this means that something went

Re: Turning off DTD validation but allow Schema validation ( was Re: Schema validation with Xerces and JAXP )

2003-01-11 Thread neilg
| | cc: | | Subject: Turning off DTD validation but allow Schema validation ( w

Turning off DTD validation but allow Schema validation ( was Re: Schema validation with Xerces and JAXP )

2003-01-09 Thread Jesus M. Salvo Jr.
and "SOAP-ENV:Envelope" is the root element. Is this an error from the DTD validation? How can I turn off DTD validation but allow Schema validation? Here is a portion of the SOAP message: http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsi="http://www.w3.org/2001/XMLSch

RE: SAX - Forcing DTD validation?

2002-04-02 Thread andrew . duan
ubject: RE: SAX - Forcing DTD validation? I did find a way and I hope it's the right one? Used the setSystemId() method on the InputSource to set the DTD to my local one... I guess I was surprised to see that the InputSource was more than a generic wrapper around a InputStream/Reader. Sorry,

Re: SAX - Forcing DTD validation?

2002-04-02 Thread Andy Clark
"Thornton, Marc" wrote: > Any caveats anyone is aware of in using this solution? I know that when I > already had a DTD declaration in my XML, I received an error based on the > format of the header (either DOCTYPE or ?xml version info) when I used this > approach. What you really want to do you

RE: SAX - Forcing DTD validation?

2002-04-01 Thread Thornton, Marc
al Message- From: Thornton, Marc Sent: Monday, April 01, 2002 1:44 PM To: '[EMAIL PROTECTED]' Subject: SAX - Forcing DTD validation? Is there any way to force validation of a specific DTD on a file that does not already define one? I want to do this to allow a user the flexibility of

SAX - Forcing DTD validation?

2002-04-01 Thread Thornton, Marc
Is there any way to force validation of a specific DTD on a file that does not already define one? I want to do this to allow a user the flexibility of opening the XML file in, for example, Internet Explorer, without that user requiring the DTD file to view it... Of course, I know I could wrap th

Re: dtd validation and jtree.

2001-12-06 Thread Andy Clark
vivek bodhraj wrote: > I have a requirement to display a DTD on a scrollpane > using Jtree. I have checked up the samples that come > with xercesparser(131), my understanding is that they Yes, it certainly is feasible but there's no code currently that does this. Perhaps it will be a future sample

dtd validation and jtree.

2001-11-26 Thread vivek bodhraj
Hi, I have a requirement to display a DTD on a scrollpane using Jtree. I have checked up the samples that come with xercesparser(131), my understanding is that they only display the xml instance not the dtd alone. Is there a way I can display it wrapping it with JTree? Any help would be appreciated

Re: DTD validation

2001-09-06 Thread Amedeo Farello
PROTECTED]> Sent: Tuesday, September 04, 2001 9:30 PM Subject: Re: DTD validation > Hi Amedeo, > > I tried your test.xml and test.dtd using the sax.SAXCount sample > using both Xerces-J 1.4.2 and 1.4.3, and both detected the error, so I'm > not sure why you don

Re: DTD validation

2001-09-04 Thread zongaro
778-6044;  Phone (416) 448-6044 mailto:[EMAIL PROTECTED] Please respond to [EMAIL PROTECTED] To:        "xerces-j-user" <[EMAIL PROTECTED]> cc:         Subject:        Re: DTD validation > are you sure you implemented the ErrorHandler to capture the error and > warning mess

Re: DTD validation

2001-09-01 Thread Amedeo Farello
t;[EMAIL PROTECTED]> > To: xerces-j-user <[EMAIL PROTECTED]> > cc: > > Subject:Re: DTD validation > > Hi Anish, > > > Your XML file and the Dtd is correct . Your dtd correctly says that > there > > will be a name tag inside the content tag. S

Re: DTD validation

2001-08-31 Thread Vlad . Epshtein
are you sure you implemented the ErrorHandler to capture the error and warning messages? Please respond to xerces-j-user <[EMAIL PROTECTED]> To:        xerces-j-user <[EMAIL PROTECTED]> cc:         Subject:        Re: DTD validation Hi Anish, > Your XML file and the Dtd is

Re: DTD validation

2001-08-31 Thread Amedeo Farello
Hi Anish, > Your XML file and the Dtd is correct . Your dtd correctly says that there > will be a name tag inside the content tag. So the parser is correctly not > complaining. Inside the content tag, _not_ inside the container tag at the same level with the content tag. I would like to have the

Re: DTD validation

2001-08-30 Thread Andy Clark
Amedeo Farello wrote: > I would expect, from what I have understood about DTDs (which could not be > enough, I admit) that a validating parser should raise an exception indicating > the presence of a element outside of a element. Instead > Xerces > parses such a file without problems. You must

RE: DTD validation

2001-08-30 Thread Anish Malhotra
To: xerces-j-user Subject:DTD validation Hi, I have just started working with DTDs and I feel I am getting strange results from validation. Since I am not an XML expert, I hope someone can help. I will use a minimal example: given the following 'test.dtd': and the

DTD validation

2001-08-30 Thread Amedeo Farello
Hi, I have just started working with DTDs and I feel I am getting strange results from validation. Since I am not an XML expert, I hope someone can help. I will use a minimal example: given the following 'test.dtd': and the following 'test.xml': Cat Dog I would

Re: DTD validation through proxy

2001-06-05 Thread Elgin Lee
This is a Java issue, I believe. You can specify the proxy settings through system properties like http.proxyHost and http.proxyPort. For example: http://www.ibiblio.org/javafaq/javafaq.html#proxy For authentication, you'll need to implement an Authenticator and set it as the default using

DTD validation through proxy

2001-06-03 Thread Bernard Schelberg
Hi, Is it possible to specify proxy settings for the Xerces parser to use when retrieving a DTD? The program I am working on retrieves an XML doc from the web (through a proxy requiring authentication), but then I can't parse it because the parser can't download the dtd because of the proxy. Is