improve html view and dtd conversion