Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: New to xml schema - does the dtd/schema validation happens always ?

From: Philippe Poulard <philippe.poulardNO@---------.-->
To: NULL
Date: 4/1/2009 1:08:00 PM
pramodr a écrit :
> Hi group,
> 
> I am a novice in XML technologies even though I have been exposed to
> it for quite some time. My question is as follows
> 
> If a dtd or schema is supplied with the xml, is the xml validated
> always against  the dtd/schema ?

The validation will be performed if you ask for it. It may depend on the 
parser used and on the application.

> 
> We specify the dtd (or schema) with a URL like the one below which is
> a part of a web deployment descriptor - web.xml. If the validation is
> mandatory why does'nt it throw me an error when I am working
> standalone (disconnected from the web) ?

Some applications rely on a component called a catalog that maps URIs to 
resources stored in your local file system; this allow to avoid network 
connexion and work in a disconnected mode as you mentionned.

In the case of servlet engines, their catalog just have to resolve very 
few and well-known URIs, and they are likely hard-coded and resolved to 
internal resources (in the jar).

> 
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
> Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
> <web-app id="WebApp_ID">
> 
> </web-app>
> 
> 
> Thanks and regards
> Pramod R


-- 
Cordialement,

               ///
              (. .)
  --------ooO--(_)--Ooo--------
|      Philippe Poulard       |
  -----------------------------
  http://reflex.gforge.inria.fr/
        Have the RefleX !


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent