Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
E4X in Nashorn
import javax.script.ScriptEngine;
import javax.script.ScriptEngineManager;
public class E4X {
public static void main(String[] args) {
System.out.println("E4X: " + System.getProperty("nashorn.lexer.xmlliterals"));
ScriptEngineManager manager = new ScriptEngineManager();
ScriptEngine engine = manager.getEngineByName("js");
try {
} catch (Exception e) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment