Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.
The following is the XML for which schema has to be defined. Can you please help me define a schema.I cannot use ‘:’ in the element name. I need the schema to be exactly similar to this.Thanks a lot for the help in advance.- <rdf:RDF xmlns:rdf=“http://www.w3.org/1999/02/22-rdf-syntax-ns#” xmlns:dc=“DCMI: DCMI Metadata Terms” xmlns:ncsp=“http://ncsp.forum.nokia.com/”>- <rdf:Description rdf:about=“http://nds2.ncsp.nokia.com/download/?asset_id=10243”> dc:titleNokia 3D Animation Toolkit</dc:title> dc:description3D screen saver tools including software and an example animation.</dc:description> dc:date2002-06-12</dc:date> dc:formatapplication/zip</dc:format> dc:identifier10243</dc:identifier> dc:languageEnglish</dc:language> dc:subjectMobile Entertainment Solutions</dc:subject> dc:subject3D</dc:subject> dc:subjectEntertainment</dc:subject> dc:publisherNokia Corporation</dc:publisher> ncsp:filenameN3A_Content_Tools.zip</ncsp:filename> ncsp:filesize423 kB</ncsp:filesize> ncsp:classToolkit</ncsp:class> ncsp:notesUsing these tools requires that you have 3D Studio Max (www.descreet.com).</ncsp:notes> ncsp:version1.1</ncsp:version> ncsp:versiontypeFinal</ncsp:versiontype> </rdf:Description></rdf:RDF>
Hithe point is that a single schema document only takes definitions for a single targetNamespace. Hence, a schema for multiple namespace must contain of multipleschema documents which refer to each other using xs:import elements.(xs:include composes schema documents for the same targetNamespace)A very simple example looks as follows:<xs:schema targetNamespace=“URI1” xmlns:p1=“URI1” …> <xs:element name=“E1”/></xs:schema><xs:schema targetNamespace=“URI2” xmlns:p2=“URI2” xmlns:p1=“URI1” …> <xs:import namespace=“URI2” schemaLocation=“…”/> <xs:element name=“E2”> xs:complexType xs:sequence <xs:element ref=“p1:E1”/> </xs:sequence> </xs:complexType> </xs:element></xs:schema>Hope that helpsUli