How to link your own XSD file to your XML file

XSD File:

<?xml version=”1.0″ encoding=”utf-8″?>

<xs:schema targetNamespace=”<Some String as namespace>”     elementFormDefault=”qualified”    xmlns:xs=”<some schema defn may be from w3>” >

……………………………

……………………………

</xs:schema>

XML File:

<?xml version=”1.0″ encoding=”utf-8″ ?>

<Rootelement xmlns=”<same targetNamespace as in xsd file>” xmlns:xsi=”<some schema defn may be from w3>” xsi:schemaLocation=”<same targetNamespace as in xsd file><space><xsd file name.xsd>” >

……………..

………………

</Rootelement>

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s