Skip to Content
Special Edition Using XML, Second Edition
book

Special Edition Using XML, Second Edition

by - et al. David Gulbransen
July 2002
Intermediate to advanced
864 pages
22h 32m
English
Que
Content preview from Special Edition Using XML, Second Edition

Attributes

Elements are the most fundamental component of an XML document; all XML documents have at least one element, the root element. However, there is also another fundamental mechanism for XML documents, which allows associating name/value pairs with elements: attributes.

Attributes should already be familiar to you from HTML:

<IMG SRC="logo.gif" BORDER="0"> 

The IMG tag makes use of many attributes, including the SRC attribute, which is used to associate the location of the image, and the BORDER attribute, which specifies the width of the image border.

Attributes Supplement Elements

Attributes are best utilized to store data that might not be important to the document structurally, but increase the informational value of an element. For ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

XML Pocket Reference, 3rd Edition

XML Pocket Reference, 3rd Edition

Simon St. Laurent, Michael Fitzgerald
Essential XML: Beyond Markup

Essential XML: Beyond Markup

Don Box, Aaron Skonnard, John Lam

Publisher Resources

ISBN: 078972748XPurchase book