R
R
Roman2016-12-28 15:50:40
Java
Roman, 2016-12-28 15:50:40

How can xsd help?

You need to load a lot of data from xml and put it in the database, presumably mongo, because the structure is complex with varying degrees of nesting. For xml there is xsd how can this help? With the help of xsd it is possible to generate structures? Or what is it for?
Are there tools to help automate this?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Alexander Oparin, 2016-12-28
@losaped

Yes, with xsd you can automatically make java classes.
Either by means of the environment, or through online services (the first one that came across: pojo.sodhanalibrary.com/pojoFromXSD.html)

A
al_gon, 2016-12-28
@al_gon

JAXB
stackoverflow.com/questions/11463231/how-to-genera...
pojo.sodhanalibrary.com/pojoFromXSD.html

A
Alexander Pavlyuk, 2016-12-28
@pav5000

XSD is an xml document schema, like a database schema, only for xml. We can say that this is a validator, with which you can check whether the xml document satisfies the requirements.

R
Roman, 2016-12-28
@losaped

Through the services, alas! I don’t even know if it’s worth bothering and trying to find a standard solution, or write the parser myself ...
has anyone tried to work with xsd from the site goszakupki.gov.ru?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question