Re: clojure call dom4j has a problem

2012-05-07 Thread winkywoos...@gmail.com
On Sunday, May 6, 2012 6:36:41 AM UTC-6, zyboost wrote: > > why call DocumentHelper.createDocument(string name) error? > dom4j's DocumentHelper.createDocument either takes no arguments, or an Element argument—there's no createDocument() method for a String argument. http://dom4j.sourceforge.n

Re: clojure call dom4j has a problem

2012-05-06 Thread Aaron Cohen
On Sun, May 6, 2012 at 8:36 AM, 周尧 wrote: > why call DocumentHelper.createDocument(string name) error? > > According to http://dom4j.sourceforge.net/dom4j-1.6.1/apidocs/, there is no such overload. I have no idea what you're wanting to do, but maybe: (DocumentHelper/createDocument (DocumentHel

clojure call dom4j has a problem

2012-05-06 Thread 周尧
This code: i use dom4j version 1.6.1 clojure version 1.3 when i write below code: (DocumentHelper/createDocument "accountInfo") cause this error: ClassCastException java.lang.String cannot be cast to org.dom4j.Element > user/eval180 (NO_SOURCE_FILE:34) but if i call this: > > (Documen