I want to use underline tag in my xml document. which tag should i use. i know...

Ratchetr

New member
XML is not a 'markup' language like HTML.

XML is meant for sending data...raw data. How that data is to be displayed to a user isn't XML's business. XML has no concept of 'underline'.

The whole idea behind XML really is that you separate the raw data, from how you want to display that raw data on one particular device. If you are displaying a web page, then, yeah, you might want 'special deals' to be underlined. What if you are sending that data to a database? Databases don't know how to underline. What if you are sending it as an SMS text message? SMS doesn't support underline.

Raw XML data isn't really meant to be viewed by an end user, although it's nice that you can when you need to.

But for the end user, you have to 'do something' before you can display that XML data. One choice is an XSLT transform. XSLT isn't easy, but you can do some really cool stuff with it. Like take an XML document and convert it to HTML for a browser, where you underline the special deals. Or convert the same XML to text suitable for an SMS message. Or convert the XML to a CSV file that can be imported to Excel. Cool stuff ;-)
 
...about html, its <u> tag..? but i have not much or say just no knoweldge of xml... can you please help me for that.
<title>abcde</title>
<date>~~~~~~~~</date>
<description>special deals</description>
<main><![CDATA[<img alt="xxxxxxxxxxxxxx
This is kind of thing what i am using.. i want to make special deal underlined.
please help

Thanks a lot
 
XML is not a 'markup' language like HTML.

XML is meant for sending data...raw data. How that data is to be displayed to a user isn't XML's business. XML has no concept of 'underline'.

The whole idea behind XML really is that you separate the raw data, from how you want to display that raw data on one particular device. If you are displaying a web page, then, yeah, you might want 'special deals' to be underlined. What if you are sending that data to a database? Databases don't know how to underline. What if you are sending it as an SMS text message? SMS doesn't support underline.

Raw XML data isn't really meant to be viewed by an end user, although it's nice that you can when you need to.

But for the end user, you have to 'do something' before you can display that XML data. One choice is an XSLT transform. XSLT isn't easy, but you can do some really cool stuff with it. Like take an XML document and convert it to HTML for a browser, where you underline the special deals. Or convert the same XML to text suitable for an SMS message. Or convert the XML to a CSV file that can be imported to Excel. Cool stuff ;-)
 
Back
Top