1.

Give An Example Shows Xml Document Has A Reference To An Xml Schema?

Answer»

This example show you how XML document has a reference to an XML Schema.

Example:

<?xml version="1.0"?>

<NOTE>

xmlns="HTTP://www.r4r.co.in"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://www.r4r.co.in note.xsd">

<to>Abhi</to>

<from>SUDHI</from>

<heading>Birthday WISH</heading>

<body>Happy Birthday DEAR</body>

</note>

This example show you how XML document has a reference to an XML Schema.

Example:

<?xml version="1.0"?>

<note>

xmlns="http://www.r4r.co.in"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://www.r4r.co.in note.xsd">

<to>Abhi</to>

<from>Sudhi</from>

<heading>Birthday Wish</heading>

<body>Happy Birthday Dear</body>

</note>



Discussion

No Comment Found