XML Schema Attribute

Having trouble installing Oxygen? Got a bug to report? Post it all here.
xs

XML Schema Attribute

Post by xs »

Hi:
I have an XMl as below:
<SONG xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="24-10.xsd">
<TITLE>Hot Cop</TITLE>
<PUBLISHER id="v4">PolyGram Records</PUBLISHER>
<COMPOSER>
<NAME>Jacques Morali</NAME>
</COMPOSER>
<PRODUCER>
<NAME>Jacques Morali</NAME>
</PRODUCER>
<LENGTH>6:20</LENGTH>
<YEAR>1978</YEAR>
<ARTIST>Village People</ARTIST>
</SONG>

I don't kown how to assign the XML schema to the Publisher node.
Thanks for help!
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post by george »

Hi,

Oxygen uses Xerces and it follows a one schema per namespace rule. Both your SONG and PUBLISHER elements are from no namespace so you should set only one schema. If you have two or more schema files you can just create a master schema and include all your schemas there then set this file similar with how you already specified the 24-10.xsd schema.

Hope that helps,
George
Post Reply