0

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?

1
  • Which browsers do you target? I was a big fan of XML+XSL client side, but JSON changed everything. There is an xslt to convert xml in JSON code.google.com/p/xml2json-xslt but it may provide strange formats. Commented Nov 18, 2011 at 9:45

1 Answer 1

1

Rhino that was bundled with Java 1.6 is missing E4X support. From http://blogs.oracle.com/sundararajan/entry/e4x_is_not_mustang:

Although Mustang includes Rhino 1.6R1 (and probably will change to Rhino 1.6R2 before FCS), we are not including E4X (ECMAScript for XML) support in it.

You should get Rhino directly from Mozilla. All version from 1.6R1 onward have support for E4X.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.