Section 4.6.  Saving a document

Prev don't be afraid of buying books Next

4.6. Saving a document

To save a document as XML:

1. On the File menu, click Save As.

2. Select XML Document (*.xml) from the Save as type list.

3. Click Save.

There are two options, depending on whether you check the Save data only box on the Save As dialog.[6]

[6] The Apply transform check box on the Save as dialog offers another option: to specify a transformation to execute upon saving. It is discussed in 5.3.2.3, "Saving a document using a transformation", on page 112.

Caution

The Save data only box is confusingly named since you will be saving markup even if you check it. Think of it as "Save without WordML" or "Save custom XML only".




4.6.1 Saving XML without WordML

When the Save data only box is checked, none of the Word formatting information is saved. In the case of Doug's article document, the result is identical to Example 4-1. It contains only the article tags and is valid according to the article.xsd schema.

Any other information has been lost; when you reopen the document in Word, there will be no styles or formatting applied to the text, and the settings such as page margins and tracked changes will be wiped out.

4.6.2 Saving mixed vocabularies

If the Save data only box is not checked, the resulting XML document contains elements from both the WordML and article schemas, mixed together. Namespaces are used to distinguish between the two vocabularies. This option is discussed further in 5.2, "Mixing WordML with other vocabularies", on page 102.

The marked up article document could also be saved as a Word document in the .doc binary format. As with WordML, the .doc representation retains all the article markup. However, it is less useful than WordML because it is not easily processable by other products.

Amazon


XML in Office 2003. Information Sharing with Desktop XML
XML in Office 2003: Information Sharing with Desktop XML
ISBN: 013142193X
EAN: 2147483647
Year: 2003
Pages: 176

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