-
Book Overview & Buying
-
Table Of Contents
Mastering Joomla! 1.5 Extension and Framework Development Second Edition
XML (Extensible Markup Language) is often used to send and receive web service data. It is important that we understand how XML is structured so that we can interact with such web services.
The next example demonstrates how a typical XML document is constructed:
<?xml version="1.0" encoding="UTF-8" ?>
<rootNode>
<subNode attr="Some Value">Some Data</subNode>
</rootNode>The first line of code is known as the XML declaration. It declares that the document is XML, which version of XML it is, and what the character encoding is.
We then encounter the opening tag rootNode. XML documents have one root node that encapsulates the XML document.
Within rootNode is another node, subNode. This node contains some data and an attribute called attr. There is no limit to the depth of an XML document; this is one of the things that make XML so flexible.
When creating our own XML schemas, we can choose the names of all the tags and attributes that we are going to implement...
Change the font size
Change margin width
Change background colour