Subj : Re: constructing XML properties for host object To : netscape.public.mozilla.jseng From : andrei Date : Thu Dec 30 2004 10:54 am It looks like this code does what I need. Node node = ...; XmlObject xmlObject = XmlObject.Factory.parse( node ); Object[] args = new Object[1]; args[0] = xmlObject; result = ScriptRuntime.newObject( globalScope.get( "XML", globalScope ), cx, this, args ); Is it the "right way"? Andrei .