File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes what's the correct format for dozer mapping file? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "what Watch "what New topic

what's the correct format for dozer mapping file?

zenius lee

Joined: Jan 29, 2009
Posts: 10

I am trying to use dozer and I follow the sample configuration file provided by dozer web site.

but I got a exception:

Can anyone help me out?
Paul Clapham

Joined: Oct 14, 2005
Posts: 19973

I find it very odd that a DTD declaration would point to a schema. Very odd indeed. I would expect it to point to a valid DTD. Apparently the parser agrees with me. You might consider reporting that to the people who support the product.
Balu Sadhasivam
Ranch Hand

Joined: Jan 01, 2009
Posts: 874

Check out the version of Dozer framework , i guess the latest one supports xsd. but valid DTD for older versions is

<!DOCTYPE mappings PUBLIC "-//DOZER//DTD MAPPINGS//EN" "dozerbeanmapping.dtd">
Dominic Kalvap

Joined: Apr 18, 2009
Posts: 1
Change xml header with following, it should fix your problem.

It is sorta covered in the JavaRanch Style Guide.
subject: what's the correct format for dozer mapping file?
It's not a secret anymore!