levo

Software and the Development Environment

XML files and structured data

  • 3 things to know
  • AS Unit 1
Start revising · £5/month

Overview

Elements in this XML fragment: <book><title>Kes</title><author>Barry Hines</author></book>, four rules an XML document must obey to be well-formed and difference between an XML document being well-formed and being valid.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Key term

What are four rules an XML document must obey to be well-formed?

Key term

What does XML stand for, and what is XML used for?

Key term

Why is XML described as self-describing?

Questions from this subtopic

Each one with the model answer underneath.

  1. 1

    What does XML stand for, and what is XML used for?

    Model answer

    XML stands for Extensible Markup Language, and XML is used to hold and exchange structured data as text that both a person and a program can read.

  2. 2

    Why is XML described as self-describing?

    Model answer

    Every value in an XML document sits inside a tag that names what the value is, so the meaning of the data travels with the data instead of depending on a separate layout document.

  3. 3

    Name the elements in this XML fragment: <book><title>Kes</title><author>Barry Hines</author></book>

    Model answer

    The fragment contains three elements: book, which is the root of the fragment, and the two child elements title and author.

  4. 4

    In the XML <student id="1042">Ali</student>, identify the element name, the attribute and the text content.

    Model answer

    The element name is student, the attribute is id with the value 1042, and the text content is Ali.

  5. 5

    What are four rules an XML document must obey to be well-formed?

    Model answer

    A well-formed XML document has exactly one root element, closes every element it opens, nests elements without overlapping, and quotes every attribute value; tag names must also match in case.

  6. 6

    Why is <name>Ali</Name> not well-formed XML?

    Model answer

    XML tag names are case sensitive, so the closing tag Name does not match the opening tag name and the element is never properly closed.

Other ways to work this

The same content, four other ways.

Everything in your subscription

Runs, plus a mode for every other kind of session.

1Flash
2Imposter
3Fade
4Brain dump

Learn every subtopic in runs of four questions

Facts flash and fade, a wrong word hides in some of them, and a brain dump decides which questions are locked in.

Software and the Development Environment
Defining Data: Types, Variables and Classes
Program Control Structures
Objects, Classes and Data Structures

Cram the night before, weakest topic first

A quick scan finds your weakest topics. Recall each fact you missed three times in a row.

A null is the of one.
absencepresencetype

Blank Blitz consolidates the facts

Rapid timed gap-fills on the terms and numbers you need to recall without thinking.

✓What it iscovered
~Why it happenspartly there
How long it lastsnot there yet

Explain It tests your understanding

Explain a concept in your own words and see which of its points you covered.

An error is the mistake a person made.
TrueFalse

Test It catches misconceptions

Spot the fault in a statement. The faults are the mistakes students make most often.

721941163128510

Brain Breaks between sessions

Short focus games to reset attention, so the next set lands better than the last.

Every question in Software and the Development Environment, on a schedule.

Learn it in runs of four questions, each ending on a brain dump against the clock. Every question you lock in comes back the next day, then at longer gaps, each time just before you would forget it.

Or £46 a year, about £3.83 a month. Cancel anytime.