This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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

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: 19728

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.

I agree. Here's the link:
subject: what's the correct format for dozer mapping file?
It's not a secret anymore!