on 04-16-2008 10:11 AM
Hi everybody,
we use :
http://help.sap.com/saphelp_nw04/helpdata/en/c4/e1343e8c7f6329e10000000a114084/frameset.htm
for schema-validation.
saxParser.setProperty("http://java.sun.com/xml/jaxp/properties/schemaSource", "./xsd_example/xsd/example.xsd");
We have doubts if the XSD could be resided in the imported archives?
We get the error:
Caused by: com.sap.engine.lib.xml.util.NestedException: [location : null] ERROR : "./xsd_example/xsd/example.xsd (No such file or directory)
Any ideas?
Hi, we got it:
saxParser.setProperty("http://java.sun.com/xml/jaxp/properties/schemaSource", this.getClass().getClassLoader()
.getResourceAsStream("Myxsd.xsd"));
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Yes it is possible.
Use Packaging of your objects for Java Class files and this XSD.
And you can call this XSD within java program by giving exact path to the XSD in that package.
Thanks,
Gujjeti
Edited by: Praveen Gujjeti on Apr 16, 2008 11:16 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.