Subj : Why don't we have "UnWrapFactory"? To : netscape.public.mozilla.jseng From : Andrei Tchijov Date : Fri Mar 11 2005 05:24 am I am trying to implement JS interface to my company product. The fact that it is possible to operate with native java objects/methods is very handy ,but there is one problem. Bunch of our methods either return Xml or accept Xml (When I say Xml I mean our own proprietary implementation of org.w3c.Dom interfaces). What I would like to achive is to instruct JS runtime to convert from "our" Xml to JS XML and vice versa automagically. It looks like "our" Xml -> JS XML transformation could be achieved with custom WrapFactory. So it should take care or methods returning Xml. But I can not figure out if it is possible to make JS convert JS XML -> "our" Xml when it needs to pass XML document as a parameter to native java method. Am I missing something? Your thoughts on the subject will be highly appreciated. .