| Author |
why does the IE or google chrome does not throw error if the xml file does not follow the xmlschema?
|
Guy Emerson
Greenhorn
Joined: Dec 14, 2010
Posts: 27
|
|
Hi all,
There is a little confusion as to why does the IE or google chrome does not throw error if the xml file does not follow the xmlschema? let me cite an example:----
country.xsd
The xml document generated based on this schema is as follows:---
country.xml
The xml document is not following the rules prescribed but still the browser does not show any error. Why?? It should have shown some error that the xml document does not follow the ruled defined in the schema.
Could you please clarify??
regards
Guy
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56194
|
|
|
What makes you think that the browser will bother validating the XML?
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
William Brogden
Author and all-around good cowpoke
Rancher
Joined: Mar 22, 2000
Posts: 12268
|
|
Browsers are notorious for trying to render incorrect HTML so you should not be surprised that they also try to cope with XML that way.
Bill
|
Java Resources at www.wbrogden.com
|
 |
 |
|
|
subject: why does the IE or google chrome does not throw error if the xml file does not follow the xmlschema?
|
|
|