Uses of Interface org.w3c.dom.Text (Java Platform SE 8 )
Date: 2026-04-22

## Uses of Interface
org.w3c.dom.Text

- Packages that use Text
  Package | Description
  --- | ---
  javax.xml.soap | Provides the API for creating and building SOAP messages.
  org.w3c.dom | Provides the interfaces for the Document Object Model (DOM).

- - ### Uses of Text in javax.xml.soap

    Subinterfaces of Text in javax.xml.soap
    Modifier and Type | Interface and Description
    --- | ---
    `interface` | `Text` A representation of a node whose value is text.

  - ### Uses of Text in org.w3c.dom

    Subinterfaces of Text in org.w3c.dom
    Modifier and Type | Interface and Description
    --- | ---
    `interface` | `CDATASection` CDATA sections are used to escape blocks of text containing characters that would otherwise be regarded as markup.

    Methods in org.w3c.dom that return Text
    Modifier and Type | Method and Description
    --- | ---
    `Text` | Document.`createTextNode(String data)` Creates a `Text` node given the specified string.
    `Text` | Text.`replaceWholeText(String content)` Replaces the text of the current node and all logically-adjacent text nodes with the specified text.
    `Text` | Text.`splitText(int offset)` Breaks this node into two nodes at the specified `offset`, keeping both in the tree as siblings.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.