February 2019
Intermediate to advanced
626 pages
15h 51m
English
XML is similar in appearance to HTML. Elements begin and end with a tag name. The tag name describes the name of an element, for example:
<?xml version="1.0"?> <rootElement>value</rootElement>
An XML document can only have one root element, but an element may have many descendants:
<?xml version="1.0"?>
<rootElement>
<firstChild>1</firstChild>
<secondChild>2</secondChild>
</rootElement>
An element may also have attributes. The rootElement element in the following example has an attribute named attr:
<?xml version="1.0"?> <rootElement attr="value"> <child>1</child> </rootElement>
Read now
Unlock full access