• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XSD, XML -> persist to DB

 
Deyan Sultov
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have the following technical specification:
1. Web based system
2. Message exchange format - XML
3. Database persistence

The problem:
Can someone help me with proposal what kind of framework I can use to facilitate this project. Particularly I am interested in something that can help me to:
1. Create XML from a given XSD. Creation of the XML could be either read data already stored in DB or use data entered by the user in a series of web input forms
2. Verify XML against given XSD
3. Persist data stored in XML objects to a database

Thanks in advance.

Regards,
Deyan
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, in a quick word, hibernate allows you to also map to XML and convert between the two.

You could also check out JAXB which is a way to convert between XML and Java Object. Something like JDOM can also help.

Mark
 
Alexey Valikov
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Deyan Sultov:
Hi All,

I have the following technical specification:
1. Web based system
2. Message exchange format - XML
3. Database persistence

The problem:
Can someone help me with proposal what kind of framework I can use to facilitate this project. Particularly I am interested in something that can help me to:
1. Create XML from a given XSD. Creation of the XML could be either read data already stored in DB or use data entered by the user in a series of web input forms
2. Verify XML against given XSD
3. Persist data stored in XML objects to a database

Thanks in advance.

Regards,
Deyan


Take a look at:
https://hyperjaxb2.dev.java.net
https://jaxbvalidation.dev.java.net

Both are JAXB add-ons. Hyperjaxb2 generates Hibernate mappings, Jaxbvalidation generates object validators.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic