Can I represent ontology by using XML? Why it is considered better to represent ontology by RDF?
Yes, an ontology can be described using XML, see http://en.wikipedia.org/wiki/RDF/XML
RDF is pretty old and has mature tools, see also Web Ontology Language