Java Mailing List Archive

http://www.gg3721.com/

Home » Hibernate Dev List »

[hibernate-dev] hibernate-mapping DTD as XSD

Steve Ebersole

2010-08-19

Replies: Find Java Web Hosting

Author LoginPost Reply
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@(protected)>
http://hibernate.org

_______________________________________________
hibernate-dev mailing list
hibernate-dev@(protected)
https://lists.jboss.org/mailman/listinfo/hibernate-dev
©2008 gg3721.com - Jax Systems, LLC, U.S.A.