You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Roberto Jr <ro...@softsite.com.br> on 2003/11/26 19:58:51 UTC
[Digester] How to validate a XML with a DTD Schema
Pepole,
Is there any method that I need to call to validate my XML with a DTD Schema before call the parse method of a Digester object?
Example: I have a XML and I wrote those lines in my XML:
<!DOCTYPE builderView
PUBLIC "-//SoftSite Tecnologia//DTD BuilderView XML Version 1.0//EN"
"http://www.softsite.com.br/dtd/builderView_1.0.dtd">
So, I want that Digester throws an Exception if the XML is not corresponding with my DTD Schema (http://www.softsite.com.br/dtd/builderView_1.0.dtd) when I call the parse method.
Thanks a lot,
______________________________
Roberto R. Costa Lima Jr.
SoftSite Tecnologia
Fortaleza, Ce, Brazil
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
Re: RE : [Digester] How to validate a XML with a DTD Schema
Posted by robert burrell donkin <ro...@blueyonder.co.uk>.
but also see
http://marc.theaimsgroup.com/?l=jakarta-commons-
dev&m=106527328517021&w=2
- robert
On 27 Nov 2003, at 07:16, Olivier Lamy wrote:
> http://jakarta.apache.org/commons/digester/api/org/apache/commons/
> digest
> er/Digester.html#setValidating(boolean)
>
> -----Message d'origine-----
> De : Roberto Jr [mailto:roberto@softsite.com.br]
> Envoyé : mercredi 26 novembre 2003 19:59
> À : commons-user@jakarta.apache.org
> Objet : [Digester] How to validate a XML with a DTD Schema
>
>
>
> Pepole,
>
> Is there any method that I need to call to validate my XML with a DTD
> Schema before call the parse method of a Digester object?
>
> Example: I have a XML and I wrote those lines in my XML:
> <!DOCTYPE builderView
> PUBLIC "-//SoftSite Tecnologia//DTD BuilderView XML Version
> 1.0//EN"
> "http://www.softsite.com.br/dtd/builderView_1.0.dtd">
>
> So, I want that Digester throws an Exception if the XML is not
> corresponding with my DTD Schema
> (http://www.softsite.com.br/dtd/builderView_1.0.dtd) when I call the
> parse method.
>
> Thanks a lot,
>
> ______________________________
> Roberto R. Costa Lima Jr.
> SoftSite Tecnologia
> Fortaleza, Ce, Brazil
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>
>
> This e-mail, any attachments and the information contained therein
> ("this message") are confidential and intended solely for the use of
> the addressee(s). If you have received this message in error please
> send it back to the sender and delete it. Unauthorized publication,
> use, dissemination or disclosure of this message, either in whole or
> in part is strictly prohibited.
> **********************************************************************
> Ce message électronique et tous les fichiers joints ainsi que les
> informations contenues dans ce message ( ci après "le message" ), sont
> confidentiels et destinés exclusivement à l'usage de la personne à
> laquelle ils sont adressés. Si vous avez reçu ce message par erreur,
> merci de le renvoyer à son émetteur et de le détruire. Toutes
> diffusion, publication, totale ou partielle ou divulgation sous
> quelque forme que se soit non expressément autorisées de ce message,
> sont interdites.
> **********************************************************************
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
RE : [Digester] How to validate a XML with a DTD Schema
Posted by Olivier Lamy <LA...@accor-hotels.com>.
http://jakarta.apache.org/commons/digester/api/org/apache/commons/digest
er/Digester.html#setValidating(boolean)
-----Message d'origine-----
De : Roberto Jr [mailto:roberto@softsite.com.br]
Envoyé : mercredi 26 novembre 2003 19:59
À : commons-user@jakarta.apache.org
Objet : [Digester] How to validate a XML with a DTD Schema
Pepole,
Is there any method that I need to call to validate my XML with a DTD
Schema before call the parse method of a Digester object?
Example: I have a XML and I wrote those lines in my XML:
<!DOCTYPE builderView
PUBLIC "-//SoftSite Tecnologia//DTD BuilderView XML Version
1.0//EN"
"http://www.softsite.com.br/dtd/builderView_1.0.dtd">
So, I want that Digester throws an Exception if the XML is not
corresponding with my DTD Schema
(http://www.softsite.com.br/dtd/builderView_1.0.dtd) when I call the
parse method.
Thanks a lot,
______________________________
Roberto R. Costa Lima Jr.
SoftSite Tecnologia
Fortaleza, Ce, Brazil
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
This e-mail, any attachments and the information contained therein ("this message") are confidential and intended solely for the use of the addressee(s). If you have received this message in error please send it back to the sender and delete it. Unauthorized publication, use, dissemination or disclosure of this message, either in whole or in part is strictly prohibited.
**********************************************************************
Ce message électronique et tous les fichiers joints ainsi que les informations contenues dans ce message ( ci après "le message" ), sont confidentiels et destinés exclusivement à l'usage de la personne à laquelle ils sont adressés. Si vous avez reçu ce message par erreur, merci de le renvoyer à son émetteur et de le détruire. Toutes diffusion, publication, totale ou partielle ou divulgation sous quelque forme que se soit non expressément autorisées de ce message, sont interdites.
**********************************************************************