XML New
XML New
05
Outline & Objectives
Minutes
05
Recap of Previous Lecture
Minutes
05
Industry Relevance
Minutes
10
Minutes Interactive Activities
02
Importance of Discipline
Minutes
03
Recording of Attendance
Minutes
With XML, the author must define both the tags and the
document structure.
Mukti Patel, Dept. of Computer Sc. &
26/04/2025 3
Engineering
Features of XML
It is in a format that both human and machines can read.
It supports Unicode.
It supports data structures.
It is self-documenting.
It has a strict format that makes it easy for parsing to take place.
It can be understood and exchanged between dissimilar systems.
It can be useful for swapping data between different applications.
An XML tree starts at a root (parent) element and branches from the root
to child elements.
All elements can have child elements and child elements can have sub
child elements:
<root>
<child>
<subchild>.....</subchild>
</child>
</root>
The terms parent, child, and sibling are used to describe the relationships
between elements.
Parents have children. Children have parents. Siblings are children on the
same level (brothers and sisters).
<b><i>Hello</i></b> ü
Mukti Patel, Dept. of Computer Sc. &
26/04/2025 10
Engineering
2) Attributes
Attributes can be added to elements in XML but must always be
quoted.
For Example, here employed is a element and started is the
attribute of the element employed.
<employed started=“10/11/12”>GSFC</employed> ü
<employed started=10/11/12>GSFC</employed> û
Value must be quoted
If these XML fragments were added together, there would be a name conflict.
Both contain a <table> element, but the elements have different content and meaning.
A user or an XML application will not know how to handle these differences.
They are −
1.Well-formed XML document
2.Valid XML document
Each of its opening tags must have a closing tag or it must be a self ending
tag.
It must have only one attribute in a start tag, which needs to be quoted.
Non DTD XML files must use the predefined character entities.
The match = “/” attribute makes sure this begins applying the
template to the root of the source XML document
The style sheet is linked into the XML by adding the connecting
statement to the XML document:
<?xml‐stylesheet type=”text/xsl” href=”abc.xsl” ?>
website
b
• GSFC University – My University: Emphasize the importance of taking ownership of the University.
• Respect & Courtesy: Remind students to be respectful to peers, teachers, and staff. Encourage polite language
and behavior.
• Punctuality: Emphasize the importance of arriving on time to class and completing assignments by deadlines.
• Classroom Rules: Reinforce basic classroom rules, such as keeping mobile phones on silent and maintaining a
clean environment.
• Safety: Remind students about safety protocols, whether it's physical safety in the classroom or digital safety
• Positive Attitude: Encourage a positive mindset, cooperation and supporting one another.
Mukti Patel, Dept. of Computer Sc. &
26/04/2025 48
Engineering
GSFCU & Values