|
|
||||
XML SamplesIn this page we will discuss small part of XML and it’s basic use. First we need to identify what is XML. XML stands for Extensible Markup language that is used to store data or information where it can be transferred to any application has its support. XML was not created to replace HTML, but to make for data or information more available to different platforms. Let as take a look at these simple XML code below: <?xml version="1.0" encoding="iso-8859-1"?/> <MyPersonalInformation> <FullName> <FirstName>Mandrix Mortel</FirstName> <LastName>Mortini</LastName> </FullName> <BirthDate> <Month>May</Month> <Date>17</Date> <Year>1983</Year> </BirthDate> <Address> <Street>St. Michael</Street> <Province>Palo</Province> <City>Tacloban</City> <Country>Philippines</Country> <PostalCode>6501</PostalCode> </Address> </MyPersonalInformation> Basically, XML did nothing at all. It is only a text where it has tags, much like HTML, but not predefined by XML. The first line of code tells the version and character encoding being used by this XML document. iso-8859-l stand for Latin-1/West European character set. The second line of code tells what kind of information or XML document. XML applications will look at the root or parent tag in your XML document. Here we have <MyInformation>, which is not defined by XML. Authors has to create their own XML tag to be used in each document. XML, like any other languages, is capable of having two or more child tags or commonly known as nested tags. The <FullName> tag has three child tags, so on and so forth. Also, XML tags are not case sensitive. Meaning we can declare <MyPersonalInformation> opening tag with a closing tag of </mypersonalinformation>. For more information and a deeper understanding of XML and it’s use, we recommend these eBooks for free.
|
||||
|
|
||||

HTML