XML Core - Basic

Print the objectives

Take the exam   Take a beta test

This exam covers document structure, syntax, and basic concepts. This exam covers core XML concepts, as defined in the XML 1.1 specification.

Not covered:

  • Non-core XML standards including but not limited to
    • XML DTDs and W3C XML Schemas
      • DOCTYPE definitions in XML documents
      • referencing a schema from an XML document
    • Defining XML namespaces (using e.g. W3C XML Schemas)
    • XSLT
    • XLink, XPointer, XPath
    • Entity references (&name;)
  • Browser- and tool-specific interpretations of the specification
  • Proprietary extensions of the specifications
  Released  Beta  Frozen  

General Principles  3 questions

Define the purpose of XML:
  • why the standard was created
  • the intended applications of XML (data exchange, structured data representation)
  • limitations of XML:
    • XML Syntax
    • XML Usage
    • Types of data that can and cannot be stored in XML
25 28 113

Vocabulary  1 question

Be comfortable with XML terminology:
  • start tag / end tag
  • element, root element, empty element
  • attribute
  • document, standalone document
  • processing instruction
  • declaration instruction
19 6 17

Document Structure  2 questions

  • Describe an XML document using declaration instructions like
<?xml version="1.0" encoding="US-ASCII" standalone="yes" ?>

  • Follow the basic rules of XML document structure:
    • The declaration instruction is optional
    • All documents must have a single root element
  • Write processing instructions:
<?cmd arg="val" ?>

23 2 24

Elements  3 questions

  • Distinguish valid element names from invalid ones.
  • Use the element syntax to define start and end tags (<test></test>).
  • Use the short notation for empty elements (<myelement/>).
36 0 42

Attributes  3 questions

  • Distinguish valid attribute names from invalid ones.
  • Add attributes to an element using the allowed delimiters (' as well as ").
  • Realize that attributes must be unique within an element, and that they are unordered.
11 0 27

Well-Formedness  3 questions

Explain the meaning and purpose of each concept:
  • Well-formedness is mandatory (if a document is not well-formed, it is not an XML document)
  • Elements must be properly nested (not crossed: <a><b></a></b>)
  • Proper usage of whitespace
19 0 52

Text  2 questions

  • Combine markup, text and whitespace within an XML document
  • Classify XML content as
    • Markup
    • Character Data (CDATA), including CDATA sections (<![CDATA[ 4+5 < 5+5 ]]>)
17 5 8

Namespaces  1 question

  • Avoid ambiguous element names using namespaces
  • Declare a namespace using xmlns
  • Override the default namespace using xmlns
  • Understand the notion of a qualified (element) name.
13 6 24

Comments  1 question

Add comments to an XML document:
  • using the proper syntax
  • in any valid location within the document
19 0 11

Entities  1 question

Explain the purpose of the built-in entities:

  • < (<)
  • > (>)
  • & (&)
  • ' (')
  • " (")

Insert a unicode character using decimal or hexadecimal notation:

  • Ӓ (decimal)
  • ꯍ (hexadecimal)
12 0 15

Exam information

  • 26 minutes
  • 20 questions (574)
  • 80% required
  • +3 √
  • - 12  points
  • 15 day delay
  • status: released