Interface TextNode

All Known Implementing Classes:
Comment, Element, ProcessingInstruction, Text, XMLDeclaration

public interface TextNode
Interface for all classes which contain text: comments, elements, processing instructions, etc.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the text from the node
    Change the text of the node.
  • Method Details

    • getText

      String getText()
      Get the text from the node
    • setText

      Node setText(String text)
      Change the text of the node. When necessary, the text will be escaped before writing it to the output stream.