9 تغريدة 1 قراءة Apr 13, 2023
What is XML format?
Thread 🧵👇
XML (Extensible Markup Language) is a markup language used to encode documents in a human-readable and machine-readable format.
It is designed to transport and store data, as well as to define the structure of documents.
XML files can contain text, data, tables, and other elements, allowing documents to be transmitted and stored in their original format.
XML documents are also easily parsed by various software applications, making them a good candidate for API output.
The fact that XML is a very flexible format is just one of its many advantages.
Web pages, configuration files, databases, and APIs are just a few applications that can use XML.
A wide range of software applications handle XML well, and it is also fairly simple to learn and use.
Users can specify their tags in XML.
Like HTML tags, XML tags are not predefined.
Because users can build their own tags, XML is incredibly flexible.
📌 Example
Let’s look at an example where we use XML.
The following characteristics are used to describe the user:
- first name
- last name
- age
As you can see, XML merely saves data as opposed to HTML.
No instructions are provided for formatting or displaying the data.
XML supports the three structures.
It means you can easily define a list of objects.
As you may have noticed, XML supports attributes like they are supported in HTML.
Category = "Customer" is the attribute.
Prolog is: <?xml version="1.0" encoding="UTF-8"?>.
Prolog is not required.
It details the encoding that was applied to the XML file.
Hope you enjoyed this thread.
If you found this thread useful, follow @Rapid_API 🐙💙

جاري تحميل الاقتراحات...