[jdom-interest] Where are the methods?

Őcsi Balázs balazs.ocsi at technotrade.hu
Thu Jul 5 23:21:49 PDT 2001


Hi everyone!

I'm new in jdom. I need a little help.
I would like to create a new XML file with jdom.
But, when I try, to compile the file, I got a message. See below.
(I use the jdom-b6)

Here is the compiler message:
-----------------------------------------
C:\My Projects\Java\jdom\JDOMDemo.java:26: cannot resolve symbol
symbol  : method addProcessingInstruction
(java.lang.String,java.lang.String)
location: class org.jdom.Document
    Document doc = new Document(new Element("setup",ns)).
                   ^
C:\My Projects\Java\jdom\JDOMDemo.java:36: cannot resolve symbol
symbol  : method setContent  (java.lang.String)
location: class org.jdom.Element
 
.addChild(new Element("page").addChild(new
Element("name").setContent("main"))));
 
^
C:\My Projects\Java\jdom\JDOMDemo.java:35: cannot resolve symbol
symbol  : method addChild  (org.jdom.Comment)
location: class org.jdom.Element
 
.addChild(new Element("banner").addChild(new Comment("company"))
 
^
C:\My Projects\Java\jdom\JDOMDemo.java:33: cannot resolve symbol
symbol  : method setContent  (java.lang.String)
location: class org.jdom.Element
 
.addChild(new Element("iexplorer", ns).setContent("Error message"))
 
^
4 errors
--------------------------------------------

I don't know where these methods are.
Thank you, for your help.
Bill.



More information about the jdom-interest mailing list