Ingmar wrote:
> I'm using Rhino 1.7R1 and it's E4X impl. How can I use org.w3c.dom.*
> objects together with Rhino? Do I need to convert it somehow into an
> XMLObject? And if so, what is the suggested way (from org.w3c.dom.* to
> XMLObject and back)?
I haven't tried with Rhino but the E4X specification suggests that
xmlList.domNode()
gives you a W3C DOM node object if xmlList is an E4X XMLList containing
exactly one E4X XML object.
The other way should be
new XML(domNode)
As I said, both is untested.
--
Martin Honnen
http://JavaScript.FAQTs.com/
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino