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

Workshop  |  XML (Extensible Markup Language)

IDOMElement Interface


This interface represents the element object.

IDOMElement Methods

getAttribute Gets the value of the named attribute.
getAttributeNode Gets the named attribute node.
getElementsByTagName Returns a list of all descendant elements that match the supplied name.
normalize Normalizes all descendent elements; combines two or more adjacent text nodes into one unified text node.
removeAttribute Removes or replaces the named attribute.
removeAttributeNode Removes the specified attribute from this element.
setAttribute Sets the value of the named attribute.
setAttributeNode Adds or changes the supplied attribute node on this element.
tagName Contains the element name, the name that appears within the tag.

Remarks

Element nodes are among the most common objects in the XML document tree. Element nodes can have attributes associated with them. By definition, attributes are not defined as child nodes of the element and are not considered to be part of the document tree. Accordingly, the DOMElement object provides methods to make it easier to manage attributes, including methods to associate an attribute with an element, and to retrieve an attribute object and the attribute value by name.

To retrieve the set of all attributes associated with the element, you can also call the getAttribute method, which returns an IDOMNamedNodeMap collection object that contains all the element's attributes.

Interface Information

Implementation Msxml.dll
Inherits from IDOMNode
Header and IDL files Msxml.h, Dom.idl
Minimum availability Internet Explorer 5 Beta
Minimum operating systems Windows 95, Windows NT

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