[hibernate-dev] hibernate-mapping DTD as XSD

Steve Ebersole steve at hibernate.org
Thu Aug 19 16:07:31 EDT 2010

Any objections to either converting to XSD completely or publishing in
both formats?  

What I'd really like is to be able to parse and validate a mapping
document in separate steps.  The validation would come from
javax.xml.validation package.  However that package does not support
DTD, only XSD.  That is because currently we do not know whether a
document we are trying to parse is a Hibernate hbm.xml document, a JPA 1
orm.xml document or a JPA 2 orm.xml document.  Ideally I'd like to parse
it and apply validations, possibly based on peeking at the document.
Additionally this would allow better control over enabling/disabling
schema validation.

Anyone recommend a good DTD -> XSD tool?

Steve Ebersole <steve at hibernate.org>

More information about the hibernate-dev mailing list