Question: what is the difference between xml and java?
Answer: C and Java are for writing programs; XML is for storing information. On its own, an XML file (including HTML) doesn't do anything. It's a data format which just sits there until you run a program which does something with it. See also the question about how to run or execute XML files.