Amit_Kumar wrote... If you're building a path from user-supplied names, you need to escape illegal JCR characters (eg "item:1" becomes "item%3A1"): String name = "/foo/" + Text.escapeIllegalJcrChars(name); If you want to use paths in XPath queries, though, you need to escape according to ISO9075 rul...