Oracle has posted the proposed final draft of Java Specification Request 225, the XQuery API for Java. Think of this as JDBC for native XML databases.