Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XML Newbie question

 
Harishree Nair
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a basic question in xml

what is the difference between the usage



and



is there any advantages / drawbacks
 
Paul Clapham
Sheriff
Posts: 21416
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Java pathi", please check your private messages regarding an important administrative matter.

Thank you.
 
Harishree Nair
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Paul Clapham wrote:"Java pathi", please check your private messages regarding an important administrative matter.

Thank you.


Done Thank you

Appreciate if any one can answer my question
 
Paul Clapham
Sheriff
Posts: 21416
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, as I'm sure you already know, one is an attribute and the other is an element. I expect you're asking why you would use one instead of the other when you're designing an XML format.

If you google "xml attribute versus element" you will see a lot of pages which discuss this issue. Here's the first link I got:

Principles of XML Design: When to use Elements versus Attributes
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic