Microsoft HomeproductssearchsupportshopWrite Us   Microsoft Home
Magazine
 |  Community
 |  Workshop
 |  Tools & Samples
 |  Training
 |  Site Info

Workshop  |  XML (Extensible Markup Language)

IDOMAttribute Object


The IDOMAttribute object represents an attribute of the IDOMElement object. Allowed values for the attribute are usually defined in a document type definition (DTD) or schema.

Remarks

IDOMAttribute objects inherit the IDOMNode object, but are not actually child nodes of the element and are not considered part of the document tree. Attributes are considered to be properties of their associated elements, rather than independent and separate. Thus, the object's parentNode, previousSibling, and nextSibling properties have the value NULL.

Attribute nodes cannot be the immediate children of the IDOMDocumentFragment node. However, they can be associated with element nodes that are children of the IDOMDocumentFragment node.

In this object, the relationship between the value and specified properties can be summarized as follows: If the attribute has an assigned value in the document and the specified property is true, the value is the assigned value. If the attribute has no assigned value in the document and has a default value in the DTD, the specified property is false, and the value is the default value in the DTD. If the attribute has no assigned value in the document and has a value of #IMPLIED in the DTD, the attribute does not appear in the structure model of the document.

In XML, the value of an attribute is represented by the child nodes of the attribute node because the value can contain entity references. Thus, attributes that contain entity references will have a child list containing both text nodes and entity reference nodes. In addition, because the attribute type might be unknown, there are no tokenized attribute values.

Members

See Also

IDOMElement


Does this content meet your programming needs? Write us!

Back to topBack to top

© 1998 Microsoft Corporation. All rights reserved. Terms of use.

 

Magazine Home
Ask Jane
DHTML Dude
Extreme XML
For Starters
More or Hess
Servin' It Up
Site Lights
Web Men Talking
Member Community Home
Benefits: Freebies & Discounts
Benefits: Promote Your Site
Benefits: Connect with Your Peers
Benefits at a Glance
Online Special-Interest Groups
Your Membership
SBN Stores
Join Now
Workshop Home
Essentials
Content & Component Delivery
Component Development
Data Access & Databases
Design
DHTML, HTML & CSS
Extensible Markup Language (XML)
Languages & Development Tools
Messaging & Collaboration
Networking, Protocols & Data Formats
Reusing Browser Technology
Security & Cryptography
Server Technologies
Streaming & Interactive Media
Web Content Management
Workshop Index
Tools & Samples Home
Tools
Samples, Headers, Libs
Images
Sounds
Style Sheets
Web Fonts
Training Home
SBN Live Seminars
SBN Live Chats
Courses
Peer Support
CD-ROM Training
Books & Training Kits
Certification
SBN Home
New to SBN?
What's New on SBN
Site Map
Site Search
Glossary
Write Us
About This Site