Sunday, 6 December 2015

XML : XML validation using XSD

I have an XML file (joe.xml) and xsd file(joex.xsd) , and i know the path of xsd file (C:/Users/Joe MT/Cookies/Desktop/joex.xsd).

I want to vaidate my xml using the xsd, and when I open my xml file and put this but I think it is wrong :

  <City xmlns="http://www.w3schools.com"  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="C:/Users/Joe MT/Cookies/Desktop/joex.xsd">    <ab></ab>    <cd></cd>    </city>    

for exemple my xml file :

  <city>    <ab></ab>    <cd></cd>    </city>    

i want to call the external xsd file to my xml file , please help

No comments:

Post a Comment