aspose file tools*
The moose likes XML and Related Technologies and the fly likes XML Newbie question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XML Newbie question" Watch "XML Newbie question" New topic
Author

XML Newbie question

Harishree Nair
Greenhorn

Joined: Feb 17, 2005
Posts: 4
I have a basic question in xml

what is the difference between the usage



and



is there any advantages / drawbacks
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

"Java pathi", please check your private messages regarding an important administrative matter.

Thank you.
Harishree Nair
Greenhorn

Joined: Feb 17, 2005
Posts: 4
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
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: XML Newbie question