PHP Programming/xml

From Wikibooks, the open-content textbooks collection

Jump to: navigation, search

XML stands for eXtensinble Markup Language and is based loosely on HTML. XML is used mainly to store and transfer information from one protocol or language to another. The code for XML is very open, you can create your own tags though they must follow the traditional HTML syntax rules. For Example:

<my_info>
   <my_name>Jeremy</my_name>
   <my_hair_color>Blonde</my_hair_color>
</my_info>

As you can see, the structure is almost identical to that of HTML, but you are able to define your own tags.