• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

PROCESSING ATTRIBUTES

 
ZEESHAN AZIZ
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Arguments over whether it is best to use elements or attributes to store values are common in XML applications. Which questions should an XML developer ask to determine whether it is best to use elements or attributes to store values for a particular situation?
a)Is the data flat or hierarchical?
b)Do multiple values need to be offered?
c)Do child information items need to be ordered? d)Does information need to be distributed over multiple devices?
e)Does information need to be queried?
f)Does the value have one of an enumeration of values?
Given answer is a, b, c, f
I think e should also be in the list, my reason being, that I read somewhere, that processing attributes is faster than elements. Am I right in my assumption?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic