Since Rhino 1.7 this is implemented on DOM ( org.w3c.dom.* ).
The following simple example shows the use of E4X ...
world; a.child="hello again"; context.createResponseFrom(a);
public org.w3c.dom.Node toDomNode();