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

Workshop  |  XML (Extensible Markup Language)

IDOMNode Interface


This interface represents a single node in the document tree; it is the base interface for accessing data in the XML object model. IDOMNode represents the OLE Automation implementation of the Node interface as defined in the World Wide Web Consortium (W3C) DOM Core Specification.

IDOMNode Methods

appendChild Appends newChild as the last child of this node.
attributes Contains the list of attributes for this node.
childNodes Contains a node list containing the children (for nodes that can have children).
cloneNode Creates a new node that is an exact clone of this node.
firstChild Contains the first child of this node.
hasChildNodes Returns true if this node has children.
insertBefore Inserts a child node to the left of the specified node or at the end of the list.
lastChild Returns the last child node.
nextSibling Contains the next sibling of this node in the parent's child list.
nodeName Contains the qualified name of the element, attribute, or entity reference, or a fixed string for other node types.
nodeType Specifies the DOM node type, which determines valid values and whether the node can have child nodes.
nodeValue Contains the text associated with the node; depends on the node type.
ownerDocument Returns the root of the document that contains this node.
parentNode Contains the parent node (for nodes that can have parents).
previousSibling Contains the left sibling of this node.
removeChild Removes the specified child node from the list of children and returns it.
replaceChild Replaces the specified old child node with the supplied new child node in the set of children of this node, and returns the old child node.

Remarks

The XML Document Object Model (DOM) presents documents as a hierarchy of "node" objects that also implement other, more specialized interfaces. Some types of nodes can have child nodes of various types, and others are leaf nodes that have no child nodes below them in the document structure. For example, nodes of type NODE_TEXT do not have children, and trying to add children to such nodes causes an error.

Interface Information

Implementation Msxml.dll
Inherits from IDispatch
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