As I noticed on oracle.com that Java has no support for XML literal in E4X implementation.
The question is: Is there any other way to process XML in JavaScript with Java Rhino ScriptEngine?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Rhino that was bundled with Java 1.6 is missing E4X support. From http://blogs.oracle.com/sundararajan/entry/e4x_is_not_mustang:
You should get Rhino directly from Mozilla. All version from 1.6R1 onward have support for E4X.