lclqt12 Posted November 16, 2010 Share Posted November 16, 2010 FriendsMy Xml is not getting correctly validated against the XSD.I expect the browser to through atleast some kind of generic error messages when i open xml fileMy Xml file is belownote.Xml<?xml version="1.0"?> <note xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:SchemaLocation="note.xsd"> <from>Jani</from> <heading>Reminder</heading> <body>Don't forget me this weekend!</body> </note> My Xsd file is belownote.xsd<?xml version="1.0"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.w3schools.com" xmlns="http://www.w3schools.com" elementFormDefault="qualified"><xs:element name="note"> <xs:complexType> <xs:sequence> <xs:element name="from" type="xs:string"/> <xs:element name="heading" type="xs:string"/> <xs:element name="body" type="xs:string"/> </xs:sequence> <xs:attribute name="to" type="xs:string" use="required"/> </xs:complexType> </xs:element></xs:schema> Both the note.xml and note.xsd files are in the same folder.Can somebody guide why i am not getting any error? Link to comment Share on other sites More sharing options...
boen_robot Posted November 16, 2010 Share Posted November 16, 2010 AFAIK, there's no way to perform XML Schema validation in IE... or any other browser for that matter. There are various validators on the server side, but none on the client side. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.