I am creating 1 xml file using JDOM. I have set path for jdom.jar. Now i am getting error like - TestXml.java:19: cannot resolve symbol symbol : method addAttribute (org.jdom.Attribute) location: class org.jdom.Element TestXml.java:21: cannot resolve symbol symbol : method addAttribute (java.lang.String,java.lang.String) location: class org.jdom.Element --=- my code is here --
is not a nice way of making a method. What is the return type? Is it public or private? I guess it works, but ... I don't know anything about jdom but one of your error messages is telling you that there is no method called addAttribute which takes 2 Strings as parameters.
Please ignore post, I have no idea what I am talking about.
posted 17 years ago
Hello William, thnx for ur reply. let me tell u that TestXml() is a contructor, so it doesn;t have any return data type. 1 thing i have to do is to add public modifier. [ April 16, 2003: Message edited by: raj varma ]