Subj : E4X FAILED ASSERTION in Kit.codeBug(Kit.java:425) To : netscape.public.mozilla.jseng From : ant Date : Tue Jan 11 2005 04:08 am Is it valid to try to modify the contents of an XML element selected with the dot-dot operator? For example, using the msg defined below, if i try: msg..s = "foo" I get an assertion failed, whereas specifying the full path works fine: msg.soap::Body.ns::reverse.s = "foo" Thanks for any help. ....ant Complete details are: js> msg petra js> soap = new Namespace("http://schemas.xmlsoap.org/soap/envelope/") http://schemas.xmlsoap.org/soap/envelope/ js> ns = new Namespace("http://ejbs") http://ejbs js> msg..s = "foo" java.lang.IllegalStateException: FAILED ASSERTION at org.mozilla.javascript.Kit.codeBug(Kit.java:425) at org.mozilla.javascript.xmlimpl.XMLName.set(XMLName.java:130) at org.mozilla.javascript.ScriptRuntime.refSet(ScriptRuntime.java:1516) at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2828) at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2164) at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:140) at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:304) at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2769) at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2145) at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:140) at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:149) at org.mozilla.javascript.Context.evaluateString(Context.java:1220) at org.mozilla.javascript.tools.shell.Main.evaluateScript(Main.java:453) at org.mozilla.javascript.tools.shell.Main.processSource(Main.java:341) at org.mozilla.javascript.tools.shell.Main.processFiles(Main.java:160) at org.mozilla.javascript.tools.shell.Main$IProxy.run(Main.java:83) at org.mozilla.javascript.Context.call(Context.java:540) at org.mozilla.javascript.ContextFactory.call(ContextFactory.java:414) at org.mozilla.javascript.tools.shell.Main.exec(Main.java:140) at org.mozilla.javascript.tools.shell.Main.main(Main.java:112) .