XML files: structure
XML stores data in nested, named elements. Each element has an opening and closing tag, and child elements sit inside a root element. The tags describe the data.
Understanding XML files: structure in VCE Software Development U3O1
What it does: The opening tag <name> is closed by </name>. The slash marks the closing tag, which makes the element complete. The students root element wraps everything else, and student and name are nested inside it as child elements. XML uses named tags to describe what each value means. Separating values with commas is how a CSV file works. An attribute sits inside the opening tag as name="value". The value must be in quotes in XML. Every opening tag needs a matching closing tag. The fix is to add </student> at the end.
Common mistakes: The closing tag must match the opening tag exactly. It should be </student>, not </studen>. The closing tag is missing its slash, so the name element is never closed. It should be </name>.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 98–113) and word search (Modules 72–113).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
<student><name>Mia</name></student>Fill in the Blanks
Spot the Error
Student with a class code? Join your class →