Subj : Re: constructing XML properties for host object To : Andrei Tchijov From : Igor Bukanov Date : Fri Dec 31 2004 03:12 pm Andrei Tchijov wrote: > The fact that you did not comment about > "getting Node object out of XML property", does it mean that that code > snippet is OK? No, it does not mean that. It just means that just did not comment on that ;)! To get XmlObject from E4X JS object "x" use: Wrapper wrap = (Wrapper)ScriptableObject.callMethod(x, "getXmlObject", new Object[0]); XmlObject xmlObject = (XmlObject)wrap.unwrap(); which uses the fact that E4X objects in Rhino provides for scripts "getXmlObject()" method. so in JS the above fragment reduces to : Then you can call any method on the resulting xmlObject that XMLBeans provides. Note also that this machinery is intended to be used from scripts since in JS the above code reduces to: var x = TEST; .... var xmlObject = x.getXmlObject(); And do not use NativeJavaObject in application code: it is not a part of public API either, use Wrapper interface instead. Regards, Igor .