xml can be written straight into html code and vice versa using the correct syntax, ie your html in here and
You mean the file extension, right? HTML: .html or .htm XML: .xml
XML is different from HTML in many ways. XML can be used mainly for mobile designing while HTML for web designing.
There was no XML in HTML 4, and you can only add XML to HTML 5 if you reset the content MIME type. XML hasn't changed. But XML is a language used to define other languages. XML was used to define the standards for XHTML 1.0, the successor to HTML 4. The rules of XML apply in XHTML, because the language is based off of XML. These rules are not, in any way, part of HTML 4. HTML 5 is not, by default, an XML based language. But there is a version that allows one to use the XML (or XHTML) style serialization. If you do this, however, you have to deliver the document using an XML MIME type, like application/html+xml. (Normally, this involves messing with the server a bit.) See the related link for HTML 5 Doctor's take on XML serialization in HTML 5, as well as some other, useful links.
XML probably will not replace HTML. XML is a language to define categories of data. HTML is a language to define format.
basikly xhtml is a mics of html and xml. the difference in html and xhtml is that xhtml is a more strict on the syntax and defined as a xml document. xml is a self defined language... in short it is a strikter html in xml format...
HTML and XML are scripting languages. These languages help in designing for mobiles and web.
HTML and XML both are markup languages. These languages use tags for functionality.
an xml value can be anything, its up to as xml is not a semantic language like html.
As a programmer, processing pure XML is easier that HTML. This is because XML follows a very strict set of standards. HTML (such as HTML 4 or 5) does not. For instance, all XML tags close, either by a closing pair, or a "self-closing" tag. e.g.: <tag></tag> Or <tag /> Whereas HTML tags such as line-break and image don't follow the same pattern. <img> <br> By adhere to stricter rules, XML is easier for me to parse.
XML is more strict. For HTML, doing <b><i></b></i> wouldn't matter. That would be invalid XML. Also, XML has no set tags. It's for storing and retrieving set data, that can be used with JavaScript code.
There are several utilities that can do this for you.
XML has no rules like html in regards to tags and naming tags, you write your own xml tags.