OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   XML-Data Samples

[ Lists Home | Date Index | Thread Index ]
  • From: Sung_Nguyen@datacard.com (Sung Nguyen)
  • To: xml-dev@ic.ac.uk
  • Date: Thu, 30 Jul 1998 10:59:36 -0500

     Hello all:
     I am a newbie to XML - I used IBM Alpha XML Parser to
     work on these following samples (from XML-Data spec).
     I don't understand what is the context of "schema" in this
     Is the schema is a XML DTD or just XML file?
     How do I include it into my XML file?
     Please enlighten me - I greatly appreciate.
     <?xml:namespace name="http://company.com/schemas/books/" as="bk"/>
     <?xml:namespace name="http://www.ecom.org/schemas/dc/" as="ecom" ?>
             <name>Henry Ford</name>
             <name>Harvey S. Firestone</name>
             <name>Samuel Crowther</name>
             <author>Henry Ford</author>
             <author>Samuel Crowther</author>
             <title>My Life and Work</title>
             <author>Harvey S. Firestone</author>
             <author>Samuel Crowther</author>
             <title>Men and Rubber</title>
     The schema for http://company.com/schemas/books: 
     <?xml:namespace name="urn:uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882/" 
     <?xml:namespace href="http://www.ecom.org/schemas/ecom/" as="ecom" ?>
         <elementType id="name">
         <elementType id="birthday">
             <dataType dt="date.ISO8601"/>
         <elementType id="Person">
             <element type="#name" id="p1"/>
             <element type="#birthday" occurs="OPTIONAL">
             <key id="k1"><keyPart href="#p1" /></key>
         <elementType id="author">
             <domain type="#Book"/>
             <foreignKey range="#Person" key="#k1"/>
         <elementType id="writtenWork">
             <element type="#author" occurs="ONEORMORE"/>
         <elementType id="Book" >
             <genus type="#writtenWork"/>
             <superType href=" 
             <superType href=" 
             <group groupOrder="SEQ" occurs="OPTIONAL">
                 <element type="#preface"/>
                 <element type="#introduction"/>
             <element href="http://www.ecom.org/schemas/ecom/price"/>
             <element href="ecom:quantityOnHand"/>
         <elementTypeEquivalent id="livre" type="#Book"/>
         <elementTypeEquivalent id="auteur" type="#author"/>

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS