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

Workshop  |  XML (Extensible Markup Language)

IDOMText Object


The IDOMText object represents the text content of an element or attribute.

Remarks

XML refers to this text content as "character data" and distinguishes it from "markup," the tags that modify that character data. If there is no markup inside an element, that element's text is contained in a single DOMText object that is the child of the element. If there is markup inside an element, it is parsed into child elements that are siblings of the DOMText object(s). (Note that the content of the markup elements also appears within text nodes, which are the children of the specific markup element.)

When a document is first made available to the DOM, all text is normalized: there is only one text node for each block of text. Users can create adjacent text nodes that represent the contents of a given element without any intervening markup, but should be aware that there is no way to represent the separations between these nodes, so they will not persist between DOM sessions.

The normalize method on the IDOMElement object merges adjacent text nodes into a single node. You should normalize before starting any operations that depend on a particular document structure, to ensure that subsequent sessions will operate on the same structure.

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