Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

yet another irritating newbie question .....



Dear list,
Sorry to post non-Mac related java stuff, but you can only subscribe to so many lists.
can anyone bite my head off and explain why the following minute piece of code generates the following error:
code-------------------------------------------------------------------- --------------------
import org.dom4j.*;
import org.dom4j.Document;
import org.dom4j.util.UserDataElement;
import org.dom4j.DocumentHelper;


import java.io.*;

public class PriceElement extends UserDataElement
{
    public String currency, price, elementName;

public PriceElement (String currency, String price, String elementName)
{
UserDataElement PriceElement = new UserDataElement(elementName);
Element money = PriceElement.addElement("Money");
money.addAttribute( "currency", currency);
money.addText(price);
return PriceElement;
}
}
error ------------------------------------------------------------------------ ------------------
[javac] /Users/bobirvin/Sites/SupplierConnect/src/ejb/com/ kenisys/supplierconnect/handler/PriceElement.java:14: cannot resolve symbol
[javac] symbol : constructor UserDataElement ()
[javac] location: class org.dom4j.util.UserDataElement
[javac] {
[javac] ^


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.