Microsoft Office Tutorials and References
In Depth Information
Topic A: Working with XML
Topic A: Working with XML
Explanation
Hypertext Markup Language (HTML) is a language used to construct Web pages.
HTML consists of predefined tags. A tag is a code that specifies how a Web page
should be structured or formatted. For example, the Title tag specifies a title for the
Web page.
Extensible Markup Language (XML) is a standard markup language that designers use
to define their own tags, something that’s not possible in HTML. (HTML and XML are
both offshoots of SGML: Structured Generalized Markup Language.)
XML tags
The XML tags you define will organize document content hierarchically, but the tags
won’t directly specify how the content should be formatted. You can create an XML tag
for each item in a document that you want to isolate for formatting purposes, as shown
in Exhibit 7-1. You can then output the tagged XML content to an unlimited number of
formats. For example, you could create a set of XML tags that you apply to your
company newsletter content. You could then output the XML content with one layout
for print purposes, and with a completely different layout for Web use. Both documents
would be generated from the same initial XML file.
Exhibit 7-1: An XML document with tags
Attaching an XML schema
The set of XML tags you create to hierarchically structure specific content is called a
schema . After you’ve applied the tags from a schema to specific content and saved it as
an XML file, you can open the XML file in Word or in other applications where
formatting can be specified for each XML tag. The schema used in XML is known as
the XML Schema Definition (XSD), which is a way to describe and validate data in an
XML environment. Exhibit 7-2 shows an example of an XSD file.
Search JabSto ::




Custom Search