0
Why we use XML ?
XML
2 Réponses
0
With XML we are able to create our own tags. And from there we are able to parse them in our code. For example we got file "config.xml":
<window>
<width>800</width>
<height>600</height>
</window>
And in our program we are loading this file and parse those values to set window width and height.
0
xml was specially designed to be in human readable form.
xml is useful for setting a programs configuration file.
when you close your programs, all its settings are saved in the xml file. when you launch the program, the xml files are parsed to the program to retain its last known configuration.