I understand that XML is used to communicate between two applications using custom tags.
I did some research and found many XML tutorials, but did not describe where to use XML.
I understand that XML is famous for being user friendly. By this I mean that you can define your own tags. But I wonder where and how are these tags interpreted?
Tell me where to use XML and how to interpret the meaning of an XML file so that I can understand its basics and use it effectively.
Your difficulty in understanding where XML fits into the big picture is general.
- Word, : TCP/IP, , Word. - , , . Word () , , - , . XML Word - , . , XML ( , SVG, , .. ..), XML , , , .
, Word , , -, XML-, , , XBRL, -, , XBRL.
XML Extensible Markup Language. .
XML , .
- , , - , .
, - - XML. , , .
, Ruby XML-. REXML XmlSimple.
, XML- , , .
, , , , os, os IP-.
<config logdir="/var/log/foo/" debugfile="/tmp/foo.debug"> <server name="sahara" osname="solaris" osversion="2.6"> <address>10.0.0.101</address> <address>10.0.1.101</address> </server> <server name="gobi" osname="irix" osversion="6.5"> <address>10.0.0.102</address> </server> <server name="kalahari" osname="linux" osversion="2.0.34"> <address>10.0.0.103</address> <address>10.0.1.103</address> </server> </config>
, XML , , XML .
, langauges. :
<Order> <Customer name="bill" phone="123-345456" > etc. </Order>
(, Enterprise Service Bus) XML, XML. , Google ESB . IBM Sos. WebSphere ESB XML, IBM DataPower, XML.
, , Java Order, Customer ..
, XML , ,
customer.getName()
, , . Java XML Java. JAX/B , , , .
Your question sounds like you are comparing XML with html and wondering how the browser can guess the value of self-defined tags. This is actually impossible. You have to write a translation of the script in XSLT and attach it to your XML file (e.g. XML Outputting - PHP vs JS vs Anything Else? ). Of course, XML is not just a tool to add a translation step. In this case, it will be used when you want to create HTML pages from raw data.