Creating an XML Document

XML (Extensible Markup Language) is a universal language that enables you to create documents in which data is stored independently of the format so you can use the data more seamlessly in other forms. XML is fully supported in Office 2003 through Word, Excel, and Access. XML allows you to work with the familiar Office interface and create and save documents as XML, without ever knowing the XML language. When you work with XML, you can attach an XML Schema ”a set of rules that defines the elements and content used in an XML document. XML schemas are created by developers who understand XML. Office 2003 allows you to view, work with, and save XML files. You can also import and export XML data.

Attach a Schema in Word

graphics/one_icon.jpg

In Word, click the Tools menu, and then click Templates And Add-Ins.

graphics/two_icon.jpg

Click the XML Schema tab.

graphics/three_icon.jpg

Click Add Schema.

graphics/four_icon.jpg

Locate and select the XML schema file you want to attach, and then click Open .

graphics/five_icon.jpg

Select or clear a schema to attach or unattach it.

graphics/six_icon.jpg

Click OK.

graphics/21inf09.jpg

Save or Export XML Data

graphics/one_icon.jpg

Open the document, spreadsheet, or Access table you want to export.

graphics/two_icon.jpg

Click the File menu, and then click Save As or Export (in Access).

graphics/three_icon.jpg

Select a location where you want to save or export the XML data.

graphics/four_icon.jpg

Click the Save As Type list arrow, and then click XML Data or XML Spreadsheet (in Excel).

graphics/five_icon.jpg

Click Save. In Access, click Export, select an option, and then click OK.

graphics/21inf10.jpg

Open and View an XML Data File

graphics/one_icon.jpg

Click the File menu, and then click Open.

graphics/two_icon.jpg

Locate the XML file you want to open.

graphics/three_icon.jpg

Select the XML file.

graphics/four_icon.jpg

Click Open.

graphics/five_icon.jpg

In Excel, select an XML option.

  • As An XML List to create an XML list.

  • As A Read-Only Workbook to open as a read-only file.

  • Use The XML Source Task Pane to display the XML data in the XML Source task pane.

graphics/six_icon.jpg

Click OK.

graphics/seven_icon.jpg

To view the XML, click the View menu, click Task Pane, click the Other Task Panes list arrow, and then click XML Structure (in Word) or XML Source (in Excel).

graphics/21inf11.jpg

graphics/21inf12.jpg

graphics/21inf13.jpg

Did You Know?

You can import XML Data in Excel and Access . In Excel, select a cell in the mapped range to which you want to import XML data, click the Import button on the List toolbar, locate and select the XML file, and then click Import. There are additional XML commands on the XML submenu located on the Data menu. In Access, click the File menu, point to Get External Data, click Import, locate and select the XML file, and then click Import.



Show Me. Microsoft Office 2003
Show Me Microsoft Office 2003
ISBN: 0789730073
EAN: 2147483647
Year: 2002
Pages: 418

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net