What's wrong with the code ?


EJB design: What's wrong with the code ?

  1. What's wrong with the code ? (1 messages)

    public String read(File f) SAXParserFactory.newInstance();
    try {
    SAXParser saxParser = factory.newSAXParser();
    saxParser.parse(f, handler);
    } catch (Exception e) {
    return str;

    If I concat a string in the start, character and enddocment methods and return the string, then the string returned is empty. Can somebody tell me why this is happening. Even on system.out.println(str) it prints nothing.
  2. Whats wrong with the code?[ Go to top ]

    Are you missing some thing in the code. There is no assignment to the str variable here.
    Bava S