Question about <doctype> element in NCC.html file

Forums: 

Hi all

In NCC.html file of some Daisy book (2.02), I can see this below line:
(!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" )

I understand that that line will be used for Parser. And as I saw I could read this book when I had a internet connection, and with some books I got FileNotFound error during parsing NCC.html file.
Do you have any solution for that kind of book? (for book user)
for Daisy playback tool developers, how to solve it in NCCParser (with SAX)?

thank all.
Dung.

Can you please send the code line again? It is missing from your comment above.

Dear Dung,
DAISY 2.02 NCC file is XHTML, so you can parse it using any parser routine. Please ensure that your parser is handling white spaces etc. in the right way.
I was not able to find the attachments, if you can send the ncc.htm files again, then we can have a look at it.
with regards
Avneesh

Hi all

I copied a line in ncc.html in my origional post.
For this kiend of book, it takes time for parsing ncc.html and some times get IOException.

do you know reason and give me a solution for ncc.html parser?

thank all.
Dung.

In your parser object, you should set XmlResolver = null.
After this, it will not fetch the DTD file from internet, and your parsing will accelerate.
with regards
Avneesh

Hi Avneesh

I understand problem. I make some changes in my parser and now it works well.

thank you very much for your help.
Dung.

More about.....HTML Doctype Lee