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

Workshop  |  XML (Extensible Markup Language)

IDOMNode::get_nodeName Method


Contains the qualified name of the element, attribute, or entity reference, or a fixed string for other node types.

Syntax

HRESULT get_nodeName(
    BSTR * name);

Parameters

name
[out] Node name, which varies depending on the node type.

Return Value

Returns S_OK if successful, or an error code otherwise.

Remarks

This value depends on the value of the nodeType property:

NODE_ATTRIBUTE
The name of the attribute.
NODE_CDATA_SECTION
The literal string "#cdata-section".
NODE_COMMENT
The literal string "#comment".
NODE_DOCUMENT
The literal string "#document".
NODE_DOCUMENT_TYPE
The name of the document type. For example, xxx in <!DOCTYPE xxx ...>.
NODE_DOCUMENT_FRAGMENT
The literal string "#document-fragment".
NODE_ELEMENT
The name of the XML tag, with any namespace prefix included if present.
NODE_ENTITY
The name of the entity.
NODE_ENTITY_REFERENCE
The name of the entity referenced. Note that the name does not include the leading ampersand or the trailing semicolon. The name includes the namespace if one is present.
NODE_NOTATION
The name of the notation.
NODE_PROCESSING_INSTRUCTION
The target; the first token following the <? characters.
NODE_TEXT
The literal string "#text".

Returns the qualified name for the element, attribute, or entity reference. For example, returns xxx:yyy for the element <xxx:yyy>. The nodeName property always returns a non-empty string.

See Also

IDOMNode


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