String () { final String text = myElement.getText(); String name = myRange.getEndOffset() <= text.length() ? myRange.substring(text) : ""; if (!name.isEmpty() && nsPrefix != null && !nsPrefix.isEmpty()) { name = nsPrefix + ":" + name; } return name; }