Microsoft Office Tutorials and References
In Depth Information
2 Click the Save As Type down arrow and click All Files.
Type the name of the file in the File Name box. For example, if the name of the file you
want to save as an XML schema file is MySuppliers, you would type MySuppliers.xsd .
For more information on XML data types, visit the World Wide Web Consortium’s reference page at and type xml data types into the search box.
Creating XML Data Files
A schema is only one half of what you need to work with XML data; the other half of the
equation is the data itself. After you have created a schema that reflects the structure of your
data, you can write your data into a file with tags corresponding to the outline in your
schema file. The following listing, which you can type into a Notepad file, contains the data
for the first two suppliers in the MySuppliers.xml file included on the CD-ROM:
<?xml version="1.0” encoding="UTF-8” ?>
<Root xmlns:xsi="”
<;$RD> xsi:noNamespaceSchemaLocation="MySuppliers.xsd">
<CompanyName>Exotic Liquids</CompanyName>
<ContactName>Charlotte Cooper</ContactName>
<ContactTitle>Purchasing Manager</ContactTitle>
<Address>49 Gilbert St.</Address>�
<PostalCode>EC1 4SD</PostalCode>�
<Phone>(171) 555-2222</Phone>�
<CompanyName>New Orleans Cajun Delights</CompanyName>
<ContactName>Shelley Burke</ContactName>
<ContactTitle>Order Administrator</ContactTitle>
<Address>P.O. Box 78934</Address>
<City>New Orleans</City>
<Phone>(100) 555-4822</Phone>
Search JabSto ::

Custom Search