XmlNode node = (XmlNode) obj;
if (!(node instanceof XmlText))
return false;
String content = rubyStringToString(node.content(context));
return content.trim().length() == 0;
}
public static boolean isWhitespaceText(String s) {
return s.trim().length() == 0;