on ‎2008 Jan 23 12:18 PM
Hi Gurus,
Please provide me the difference between element and attribute.
It would be great,if I can get some example with exact usage.
Regards,
MohanRaj
Request clarification before answering.
Hi Mohan!
This is a philosophycal question - attributes vs. elements. Technically it will work if you do in anyhow. The difference is only logical.
you can create a DT like
<person>
<name></name>
<age></name>
</person>
but also like
<person name="myname" age="myage"/>
so, depends just on your opinion, what you like more. The truth is, it is a bit easier to process attributes in XSLT and in some programming languages. But as I said, depends only on you.
Peter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 9 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.