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 ?
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) ?
<?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
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 ?
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) ?
<?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