XML Foundation: What is XML?

Time:2019-5-27

Extensible Markup Language (XML) is a platform-independent way to represent data. Simply put, data created using XML can be read by any application on any platform. You can even edit and create XML documents by manual coding. The reason is that XML, like HTML, is based on the same tag-based technology.
An example

For example, suppose we want to use XML to store information about a transaction. This transaction is initiated by the salesperson’s iBook, so you want to store information in the iBook. However, the information will later be sent to the data application on the Windows server and eventually stored on your host, so this requires great flexibility to complete. The data content created using XML is shown in Listing 1.Listing 1. XML example

<?xml version=”1.0″?>

<transaction ID=”THX1138“>

<salesperson>bluemax</salesperson>

<order>

<product productNumber=”3263827“>

<quantity>1</quantity>

<unitprice currency=”standard“>3000000</unitprice>

<description>Medium Trash Compactor</description>

</product>

</order>

<return></return>

</transaction>

XML serializes information and stores it as text so that data can be used in any environment that may be needed. We can see content (in bold) and tags (for describing content) without even using special applications.
Continue learning

The use of XML is quite simple and convenient, of course, the premise is to understand the structure of XML. XML also provides a number of different methods that can be used to control the structure (or even content) of data. Once you start using XML, you’ll still be bothered by the best way to design an XML structure, but it’s not a complicated process.