levo

Software and the Development Environment

XML files and structured data

  • 3 things to know
  • AS Unit 1

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.

What is inside Levo

Six ways to work the same material.

1Closed book
2Open book
3Closed book

The 3-step method, run for you

Answer cold, learn it, then prove it stuck. Levo tracks the jump between your first attempt and your last.

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

Cram a whole paper in one sitting

Sort every topic into what you know and what you do not, then drill only the weak ones.

A null is the of one.
absencepresencetype

Blank Blitz makes facts automatic

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

AA null means no value has been recorded.
BZero and an empty string are values.
CA null is the absence of a value.

Build It gets the exam shape right

Assemble a full-mark answer from its marking points, in the order an examiner wants them.

An error is the mistake a person made.
TrueFalse

Test It catches misconceptions

Spot the fault in a statement. The traps are the mistakes students actually make.

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.

Attempt a question from memory, write the correct version, then attempt it again. Levo records the jump between your first attempt and your last, and brings each question back on the day you are due to forget it.

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