Office
 

Microsoft Word 2010 : Creating an XML Document

 
10/10/2011 9:02:04 AM
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 Microsoft Word. 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 a Word XML Schema or XML Schema (created by a developer)—a set of rules that defines the elements and content used in an XML document—and validate the data against it. Word allows you to open, view, modify, and save XML files and data.

Attach or Separate a Schema

Click the Developer tab.

Click the Schema button.

Click Add Schema.

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

Select or clear a schema to attach or separate it.

Select the Validate document against attached schemas check box to validate the document.

Click OK.

Change XML Options

Click the Developer tab.

Click the Schema button.

Click XML Options.


Select or clear the check boxes for the validation options.

Select or clear the check boxes for the view options.

Click OK, and then click OK again.

Open, View, and Modify an XML Data File

Click the File tab, and then click Open.

Click the Files of type list arrow, and then click XML Files.

Locate the XML file you want to open.

Select the XML file.

Click Open.

To show XML tags, select the Show XML tags in the document check box.

To add an XML tag, select the content you want to tag, and then click an element tag in the XML Structure task pane.

As necessary, double-click an XML tag to select its contents, and then use common editing techniques to move, copy, and delete it.

When you’re done, click the Close button on the task pane.


You can remove an XML tag quickly. Point to the start or end of the tag name, right-click the tag, and then click Remove Tag Name tag.

You can locate XML problems quickly.
If the structure of the document violates the rules of the schema, a purple wavy line marks the document location.
 
Others
 
- Microsoft Word 2010 : Customizing Word - Linking and Embedding Files
- Microsoft PowerPoint 2010 : Saving a Presentation as a Slide Show & Saving a Presentation as a Video
- Microsoft PowerPoint 2010 : Delivering a Show on Multiple Monitors
- Getting Started with Microsoft Excel 2010 : Arranging Windows
- Getting Started with Microsoft Excel 2010 : Moving Around the Workbook
- Microsoft Outlook 2010 : Working with the Ribbon and the Backstage View
- Microsoft Outlook 2010 : Working in the Outlook Program Window
- Microsoft OneOnte 2010 : Creating Pages - Choose the Default Page Template for Section Pages
- Microsoft OneOnte 2010 : Creating Sections & Creating Section Groups
- Facilitating Your Plan with Microsoft Project 2010
- Microsoft Project 2010 : Understanding Project Management Basics
- Microsoft Access 2010 : Working with Table Data
- Microsoft Access 2010 : Working with an Existing Database
- Microsoft Visio 2010 : Sharing and Publishing Diagrams - Saving in Other File Formats
- Microsoft Visio 2010 : Sharing and Publishing Diagrams - Creating Graphics
- Microsoft Word 2010 : Customizing Word - Setting Editing Options
- Microsoft Word 2010 : Customizing Word - Setting Print Options
- Microsoft PowerPoint 2010 : Presenting a Slide Show - Annotating a Slide Show
- Microsoft PowerPoint 2010 : Presenting a Slide Show - Navigating a Slide Show
- Getting Started with Microsoft Excel 2010 : Converting an Existing Workbook & Using Task and Window Panes
 
 
Most View
 
- SQL Server 2008 R2 : Locking and Performance - SQL Server Lock Granularity (part 2) - Using Application Locks
- Microsoft SQL Server 2008 R2 : Setting Up and Configuring Database Mirroring (part 4) - Configuring Database Mirroring by Using the Wizard
- Windows Vista : Mastering File Types - Working with Existing File Types
- Microsoft Outlook 2010 : Managing a Calendar - Adding an Appointment
- Windows 8 : Creating a Windows Network - Configuring a Peer-to-Peer Network (part 2) - Enabling and Disabling Sharing
- SQL Server 2012 : Enhancing Your Troubleshooting Toolset with Powershell (part 1) - The PowerShell Environment
- Adobe InDesign CS5 : Working with Objects and Layers - Arranging Object Stack Order, Transforming Objects
- Mobile Web Apps : Events
- Creating Extended Events Sessions in SQL Server 2012 (part 4) - Counting the Number of Locks Acquired per Object , Creating Sessions Using T-SQL
- Windows Home Server 2011 : Using a Mac on Your Windows Home Server Network (part 3)
 
 
Top 10
 
- Developing Custom Microsoft Visio 2010 Solutions : Creating SmartShapes with the ShapeSheet (part 6) - Adding Right-Click Actions to the SmartShape
- Developing Custom Microsoft Visio 2010 Solutions : Creating SmartShapes with the ShapeSheet (part 5) - Modifying the Text Block Using the ShapeSheet
- Developing Custom Microsoft Visio 2010 Solutions : Creating SmartShapes with the ShapeSheet (part 4) - Linking Subshape Text to Shape Data Fields
- Developing Custom Microsoft Visio 2010 Solutions : Creating SmartShapes with the ShapeSheet (part 3) - Controlling Grouped Shapes with the ShapeSheet
- Developing Custom Microsoft Visio 2010 Solutions : Creating SmartShapes with the ShapeSheet (part 2) - Creating Smart Geometry in the ShapeSheet
- Developing Custom Microsoft Visio 2010 Solutions : Creating SmartShapes with the ShapeSheet (part 1) - Introducing the ShapeSheet
- Developing Custom Microsoft Visio 2010 Solutions : Introducing the Notes Shape, Using the Developer Ribbon Tab
- Microsoft Excel 2010 : Working with Graphics - Inserting Clip Art, Inserting a Picture from File
- Microsoft Excel 2010 : Working with Graphics - Using Drawing Tools
- Windows Phone 8 : Walking Through the Bookshop Sample Application (part 5) - Overview of the Sample Bookshop WCF Service