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.
-
What's wrong with the code ? (1 messages)
- Posted by: rahul gupta
- Posted on: December 16 2005 16:22 EST
Threaded Messages (1)
- Whats wrong with the code? by bava syed on December 21 2005 21:58 EST
-
Whats wrong with the code?[ Go to top ]
- Posted by: bava syed
- Posted on: December 21 2005 21:58 EST
- in response to rahul gupta
Are you missing some thing in the code. There is no assignment to the str variable here.
Regards
Bava S