O'Reilly logo

Web Technology: Theory and Practice by M. Srinivasan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

8.5 CHARACTERISTICS
  • An XML document should be well formed, with a root element.
  • XML tags are case sensitive.
  • Many times, attributes can be substituted by elements and is in fact a good practice to follow. The thumb rule is that whenever metadata is to be represented, choose attribute instead of element. Examples of metadata include ID, type information, path etc., though it is dependent on the semantics. The majority of the representation is data (or properties) for which element is chosen over attribute.
  • XML is extensible.
  • An XML document's format can be extended without causing existing format to crash. For example, if elements are added to an existing XML structure, parsing will still work off the old elements and go ahead with (existing) ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required