Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

XML Example

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 14

Higher National Unit Specification: General Information

Statement and Confirmation of Own Work

Unit Title: Self Describing Data XML

Unit code: FM9735

Superclass: CB

Publication Date: October 2016

Source: Scottish Qualifications Authority

Version: 01

Student declaration

I have read and understood SQA HND’s Policy on Academic Dishonesty and Plagiarism.

I can confirm the following details:

Student ID/Registration number : 207549231

Name : Kam Lian K

Centre Name : KMD Computer Centre (Yangon)

Assessor’s Name : Htet Kyaw Kyaw Htin

Student Signature : KAM

Submitted Date :

Table of Contents
Outcome-1................................................................................................................................................2
Part-A.....................................................................................................................................................2
Part-B.....................................................................................................................................................3
Outcome2.................................................................................................................................................5
Outcome-3................................................................................................................................................6
Outcome-1
Part-A
Part B
XML-Tree: XML family tree depicts the segregated elements which are ancestor, parent, child or
descendant elements. There is always a root parent/root element for any other child elements. (Anon.,
2019)

Grandparent

(Screen shot of the grandparent class in your code)


Number(ancestor):its attributes are: id= a1|a2|a3
The grandparents/ancestors elements usually have one or more inner elements./
Quote:” Every inner element have one or more outer elements” (Anon., 2019)
Parent

(Screen shot of the parent class in your code)


Membername|MemberAddress|Gender|Date of Birth|Religion|Date Joined|Section|Phone
Number| Badges
Badges attributes: “type=Progress”,etc….
Parent is identified when there is an outer element of any other inner elements in the XML
family tree.
At the same time the parent elements are sibilings towards each other.As they have the same
one outer element.
Child

(Screen shot of the child class in your code)


Membername’s child: FirstName|LastName
MemberAddress’s child: Line1|Line2|Town|Postcode
Child can be identified as the inner element of any other outer element in the tree/hierarchy.
Root Element

(Screen shot of the Root element in your code)


MemberDetail
The Root element simply is the parent to all other inner elements in a XML document.

The document prologue

The above statement is to ensure the avoidance of errors while specifying the encoding that is
being used. Moreover, the statement is a declaration of the type of document it is.
UTF-8 encoding is for XML, HTML5, CSS, JavaScript, PHP and SQL.
XML stands for eXtensible Markup Language which its main function is to carry data-with the
focus on what data is. (Anon., 1990-2022)

Benefits of using Sublime are:


Autocompletion
Syntax highlight
Code Folding
Customizability
Simultaneous Editing, etc.… (Anon., 2017)

Outcome2
Before After

Pic 1 Pic 2
No closing bracket in the amount.(write down the consequences) if its missing?
The consequences of not having a closing bracket is that an error will occur when running the
program.

Before After

Pic 1 Pic 2
Missing the alphebet ‘a’ it simply means to lose its attribute ’id’ name moreover showing the link
with the other members.
Before After

Pic 1 Pic 2
There is an extra Guardian.
Just need old one for the data or to declare in the document.

Before After

Pic 1 Pic 2
Missing number Data
Because the doctype declaration, each should have whats needed.
Before After

Pic 1 Pic 2
Missing date Data
The same goes for this case as the case above needed to input its data.
Outcome-3
XML
(XML, eXtensible markup language is a markup language used for storing, transmitting, and
reconstructing arbitrary data which than encodes documents in a format that is readable to both
human and machine.) (Anon., n.d.)

XSL
(the term XSL, eXtensible Stylesheet language refers to the usage of a family of languages that
transforms and render XML documents.) (Anon., n.d.)
XML for outcome(3)
Pic of Xml coding
Pic of XSL coding
Out come picture

You might also like