By | December 2, 2019

Before how to open file XML? we should know that the XML is the extendable markup language that is used for the development of webpages. Its types of files saved with .xml. XML (Extensible Markup Language) files don’t do anything on their own.

They are simply a way of storing data that can be easily read by other programs. Many programs use XML to store data. As such, you can open, edit, and create an XML file in any text editor. XML is similar but distinct from HTML. XML is for carrying data, while HTML is for displaying it. HTML uses predefined tags, such as <p> or <h1>, while XML uses any tags that the creator needs.

How to open file XML?

Method 1

  • Right-click a file for example “hello.xml”
  • Click at “Open with….”
  • Select Notepad

Method 2

  • Double click at the XML file.
  • the file automatically opens with Default Browser.

Method 3

  • Download the HTML Editor
  • Right-click a file for example “hello.xml”
  • Click at “Open with….”
  • Select the HTML Editor like word front page.

The Difference Between XML and HTML

XML and HTML were designed with different goals:

  • XML was designed to carry data – with focus on what data is
  • HTML was designed to display data – with a focus on how data looks
  • XML tags are not predefined like HTML tags are

XML Does Not DO Anything

Maybe it is a little hard to understand, but XML does not DO anything.

This note is a note to Tove from Jani, stored as XML:

<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don’t forget me this weekend!</body>
</note>

XML is Extensible

Most XML applications will work as expected even if new data is added (or removed).

Imagine an application designed to display the original version of note.xml (<to> <from> <heading> <body>).

Then imagine a newer version of note.xml with added <date> and <hour> elements, and a removed <heading>.

The way XML is constructed, older version of the application can still work:

<note>
<date>2015-09-01</date>
<hour>08:30</hour>
<to>Tove</to>
<from>Jani</from>
<body>Don’t forget me this weekend!</body>
</note>

Leave a Reply