you avoid using attributes?
Here are some of the problems using attributes:

  • attributes cannot contain multiple values (child elements can)
  • attributes are not easily expandable (for future changes)
  • attributes cannot describe structures (child elements can)
  • attributes are more difficult to manipulate by program code
  • attribute values are not easy to test against a DTD

If you use attributes as containers for data, you end up with documents that are difficult to read and maintain. Try to use elements to describe data. Use attributes only to provide information that is not relevant to the data.Don’t end up like this ( if you think this looks
like XML,you have not understood the point):

< note day=”12″ month=”11″ year=”99″to=”Tove” from=”Jani” heading=”Reminder” Body=”Don’t forget me this weekend!” >
< /note >

  • No Related Post