Information Technology Reference
In-Depth Information
All elements can have sub (children)-elements.
Sub-elements must be in pairs and correctly nested within their parent element:
End-Tag
In the example </Patient> is the end tag. It identifies the type of element that
tag is ending. Unlike start tag, an end tag cannot contain attribute specifications .
All XML elements must have a closing tag. In XML, all elements must have a
closing tag like this:
Empty Element Tag
Like start tag, this has attribute specifications but it does not need an end tag. It
denotes that the element is empty (does not have any other elements). Note that
the symbol is for ending tag “/” before “>”.
<Patient HKID=“E376684” Patient_name=“John Doe”/>
Attributes are always contained within the start tag of an element. Here is an ex-
ample:
<Patient HKID=“E376684” patient_name=“John Doe” />
Patient
Element name
HKID
Attribute name
E376684
Attribute value
Search WWH ::




Custom Search