문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top