XML is the acronym for EXtensible Markup Language is a lightweight text-based markup language
that defines a set of rules for encoding documents in a format which are easy for humans to read and write as well as
computer machine. It is easy for machines to parse and generate.
☛
It is developed by W3C(World Wide Web Consortium) & derived from Standard Generalized Markup Language (SGML).
☛
It is alternative to JSON (as both are used for storing and exchanging data)
Requirements :-
☛
Basic knowledge of
HTML,
CSS, Javascript,
JSON
before start study basics of these subjects first.
☛
Simple-text editor, such as Notepad, Editplus, Notepad++ is popular editor among web developers.
Download here
Basic XML rules :-
☛
XML declaration is case sensitive and must begin with <?xml>
where xml is written in lower-case.
☛
Always use filename extension with .XML.
Benifits of XML :-
☛
It's human readable, easy to read and write,
lightweight data-interchange format, easy to understand.
☛
It can works with languages such as ASP, PHP, PERL, Ruby, Java, Python etc.
☛
You can use XML as a manual database with the help of XSLT.
JSON Vs XML :-
☛
JASON have more benifits over XML as :-
JSON can use single and multiple arrays, JSON is easly to read and write as compare with XML,
JSON syntex is shorter, JSON only use { } or [ ] instead any tag,
JSON Example :-
☛
marks = '{"Math":"75%","English":"82%","History":"93%"}';