Thanks for a quick reply!
The tidy did some of the job, which is pretty good. I can try using the fopen for now. I have checked isFile = true when loading the file, and it's still not working.
On other note, the last thing i need before i can finish my evaluation for now is to import graphs from the html (displayed as svg) is there an option without needing to save them as images?
Looking forward for your reply!