The explicit equivalent of the .NET System.Xml.Schema classes?

The .NET Framework provides a fairly useful set of classes as part of the System.Xml.Schema namespace .

Among other things, classes such as XmlSchema and XmlSchemaElement provide a useful API for defining / writing and parsing / reading / moving XML schema files.

Is there an equivalent library for Java?

+3
source share
2 answers

There are tools for this, but I do not think that there is anything specific in Java. I would try running JAXB in the XML Schema (http://www.w3.org/2001/XMLSchema), which will generate Java classes that match the XSD constructs. You can then use them to read / write XML schemas and validate against XML Schema.

+2
source
0
source

Source: https://habr.com/ru/post/1755686/


All Articles