I have to parse an xml file & display the contents on the gui bypressing a button.I am able to parse the file but not able to display its contents onthe frame. i get null pointer exception during runtime.