Java XML Node Text Value getTrimmedText (final Node node)

Here you can find the source of getTrimmedText (final Node node)

Description

get Trimmed Text

License

Apache License

Declaration

public static String getTrimmedText (final Node node)
    

Method Source Code

//package com.java2s;
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file

import org.w3c.dom.Node;

public class Main {
    public static String getTrimmedText(final Node node) {
        return node.getTextContent().trim();
    }/*  ww w.  jav  a  2 s .  c  om*/
}

Related

  1. getTextValue(Node node)
  2. getTextValue(Node node)
  3. getTextValue(Node node)
  4. getTextValue(Node node)
  5. getTextValue(Node node)
  6. getTrimmedTextContent(Node element)
  7. hasNodeText(Node n)
  8. hasOnlyTextSiblings(@Nonnull Node node)
  9. hasTextContent(final Node node)