Hi, I am new for the xml. I just want to know why xml needs styles. is this style means css ? and where it should impact ?
This is a great place to start.
Basically, Style Sheets (similar to CSS) can be used on XML documents (by using XSL aka "Style Sheets for XML") to display them in a "HTML Look and Feel".
It's done this way so that there is a clean separation between the content of a HTML page (which is provided as XML) and the actual view/display of it in the users' browser.
This way, different XSL Style Sheets can be used on the same content (i.e. XML).
For example to display the XML in a iPhone or on a desktop monitor there can be two XSL's, one for iPhone and one for the desktop monitor.
Take a look at the following resource for XSL and XSLT:
From the tutorial:
XSL = Style Sheets for XML
XML does not use predefined tags (we can use any tag-names we like), and therefore the meaning of each tag is not well understood.
A tag could mean an HTML table, a piece of furniture, or something else - and a browser does not know how to display it.
XSL describes how the XML document should be displayed!