vassilisa
01-26-2005, 02:39 AM
i'm using a SAXParser to parse a xml file, and a handler class to get and store the data into another java class.
i got the following classes in my program :
XmlUtil.java (to load xml) >
HelpHandler.java (handler class which implements ContentHandler)
HelpDetail (contains getter n setter method to store the data extracted)
my problem is, if i were to use the above design, is there anyway to return the populated java class (HelpDetail.java) back to the calling program(XmlUtil.java) from HelpHandler.java?
i got the following classes in my program :
XmlUtil.java (to load xml) >
HelpHandler.java (handler class which implements ContentHandler)
HelpDetail (contains getter n setter method to store the data extracted)
my problem is, if i were to use the above design, is there anyway to return the populated java class (HelpDetail.java) back to the calling program(XmlUtil.java) from HelpHandler.java?