I want to download the xsd file, which is stored in:
/WEB-INF/myxsd.xsd
I will refer to this in my controller action, not sure how to do this.
Also, since I will be referencing this all the time, can I download it once as opposed to a query?
public String create() {
Are you using relative path or full path?
Update
I already have this code that needs an xsd file where I will check the circuit.
SchemaFactory schemaFactory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI); Schema schema = schemaFactory.newSchema(schemaFile);
schemaFile is what I need to initialize the help, it seems that newSchema has several overloads (file, URI, etc.) , but this is a local file, so it makes sense to get the correct file ? Validator validator = schema.newValidator ();
I need help downloading this xsd file from the / Web-inf / folder.
source share