Let's get back to the topic of systems integration?
In this video, I'll show you what XML is and why it's so widely used.
Let's talk about XML, a markup language widely used for exchanging information between systems.
What is XML?
XML stands for Extensible Markup Language and is a markup language based on SGML. The primary function of XML is to create data formats used to encode information for documentation, database records, transactions, and many other types of data.
And SGML stands for Standard Generalized Markup Language and is used to define markup languages. To give you an idea of the importance of this standard, HTML comes from it.
Returning to the topic, the basic function of XML is to offer a "simple text-based format for representing structured information".
XML emerged with the intention of being a file format that would facilitate the exchange of data between different systems.
In a simple, flexible, and general way, it can be read and understood by both humans and machines.
Although nowadays people prefer to use JSON, I think it's very important to show you what XML is. It's still widely used and you'll certainly come across it at some point in your App Dev career.
What is an XML File?
An XML file is a simple text file with the .xml file extension.
XML files contain Unicode text and can be opened with any application capable of reading text files, such as Windows Notepad.
Different types of content can be embedded in an XML file. For example, rich media content can be embedded in XML through tags that identify the files where the rich media content resides.
How Does XML Work?
XML works by offering a predictable data format.
For an XML document to be considered well-formed, that is, compliant with XML syntax and capable of being read and understood by an XML parser,
All XML documents consist of elements, and an element acts as a container for data.
The beginning and end of an element are identified by opening and closing tags, with other elements or simple data inside.
XML documents do not define presentation, and there are no standard XML tags.
XML Elements
The logical structure of an XML file requires that all data in the file be encapsulated in an XML element, called the root element or document element. This element identifies the type of data contained in the file.
Thus:
NOTE: YouTube does not allow the characters "greater than" and "less than" in video descriptions. If you want to see the content of XML files, see the article on my blog: https://celsokitamura.com.br/o-que-e-...
XML Entities
XML elements can also contain predefined entities, which are used for special reserved XML characters.
Custom entities can be defined to insert a predefined sequence of characters for inclusion in an XML file.
Here's an example of an XML file:
NOTE: YouTube does not allow the characters "greater than" and "less than" in video descriptions. If you want to see the content of XML files, see the article on my blog: https://celsokitamura.com.br/o-que-e-...
Final Words
And today we saw what XML is.
XML stands for Extensible Markup Language and is used to describe data. The XML standard is a flexible way to create information formats and electronically share structured data.
It is a markup language based on SGML and is widely used for exchanging information between systems. Currently, it is losing ground to JSON.
And that's all for today!
And if you want to learn more about programming, keep following me!
If you liked this video, give it a like and subscribe to the channel. Don't forget to activate notifications to receive an alert when new videos are published.
Until next time!
Follow me here ⤵⤵
💻 Blog: https://celsokitamura.com.br
💻 Instagram: / celsokitamura
🎥 Youtube: / celsokitamura
🔵 Facebook: / celsokitamura
#WhatIsXML
#IAmAnAppDev