hey Ryan, 
how were you able to solve this ? 
I am doing something similar on the client side, also I see this issue only 
with internet explorer. Not with Chorme or Mozilla or Opera. 
Your help is highly appreciated. 
Thanks


On Tuesday, May 15, 2007 1:38:24 AM UTC-7, Ryan wrote:
>
> Don't know what I was thinking on this, but I fixed the stupid
> errors...
>
> Is there any convenient way to convert a Document object to a string
> on the client side? I haven't found away so I have commented it out
> and am now just generating my own string since the Documents are
> simple.
>
> On May 1, 9:12 pm, Ryan <[email protected]> wrote:
> > I am trying to create an XML Document on the client side with the
> > following code, but it doesn't seem to work at appendChild() if I call
> > it consecutively.  I've pasted the code and the error.
> >
> >         private Document genRequestMsg(){
> >                 Document xml = XMLParser.createDocument();
> >
> >                 Element e = xml.createElement("action");
> >                 e.setAttribute("type", "request");
> >                 xml.appendChild(e);
> >
> >                 e = xml.createElement("constraint");
> >                 //xml.appendChild(e);      ERROR
> >
> >                 e = xml.createElement("page");
> >                 e.appendChild(xml.createTextNode(new 
> Integer(pageNum).toString() ));
> >                 //xml.appendChild(e);   ERROR
> >
> >                 e = xml.createElement("numperpage");
> >                 e.appendChild(xml.createTextNode(new
> > Integer(numPerPage).toString() ));
> >                 //xml.appendChild(e);   ERROR
> >
> >                 return xml;
> >
> > [ERROR] Unable to load module entry point class com.myapp.client.MyApp
> > com.google.gwt.xml.client.impl.DOMNodeException: Error during DOM
> > manipulation of: <action type="request"/>
> >         at 
> com.google.gwt.xml.client.impl.NodeImpl.appendChild(NodeImpl.java:
> > 84)
> >         at com.myapp.client.xmlMessage.genRequestMsg(xmlMessage.java:50)
> >         at com.myapp.client.xmlMessage.toString(xmlMessage.java:74)
> >         at java.lang.String.valueOf(String.java:2615)
> >         at java.io.PrintStream.print(PrintStream.java:616)
> >         at java.io.PrintStream.println(PrintStream.java:753)
> >         at 
> com.myapp.client.ui.ListTabWidget.<init>(ListTabWidget.java:32)
> >         at com.myapp.client.MyApp.onModuleLoad(MyApp.java:42)
> >         at
> > 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> > 39)
> >         at
> > 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
> > 25)
> > Caused by: com.google.gwt.core.client.JavaScriptException: JavaScript
> > Error exception: HIERARCHY_REQUEST_ERR: DOM Exception 3
> >         at
> > 
> com.google.gwt.dev.shell.mac.ModuleSpaceSaf.invokeNative(ModuleSpaceSaf.java:
> > 200)
> >         at
> > 
> com.google.gwt.dev.shell.mac.ModuleSpaceSaf.invokeNativeHandle(ModuleSpaceSaf.java:
> > 98)
> >         at
> > 
> com.google.gwt.dev.shell.JavaScriptHost.invokeNativeHandle(JavaScriptHost.java:
> > 79)
> >         at
> > 
> com.google.gwt.xml.client.impl.XMLParserImpl.appendChild(XMLParserImpl.java:
> > 36)
> >         at 
> com.google.gwt.xml.client.impl.NodeImpl.appendChild(NodeImpl.java:
> > 80)
> >         at com.myapp.client.xmlMessage.genRequestMsg(xmlMessage.java:50)
> >         at com.myapp.client.xmlMessage.toString(xmlMessage.java:74)
> >         at java.lang.String.valueOf(String.java:2615)
> >         at java.io.PrintStream.print(PrintStream.java:616)
> >         at java.io.PrintStream.println(PrintStream.java:753)
> >         at 
> com.myapp.client.ui.ListTabWidget.<init>(ListTabWidget.java:32)
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to