on 03-22-2010 11:30 AM
Dear All
Can we read a file(xsd schema etc) kept in imported archive using a Java mapping program which is kept in the same zipped folder.
This is required as we need to do xsd validations of the incoming message.
Thanks
Sourabh
Check this link: [http://www.theserverside.com/discussions/thread.tss?thread_id=31925]
URL myURL = this.getClass().getClassLoader().getResource("YourXML.xml");
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Its best to keep it in the IA itself.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Not sure. Give a try.
You can also put the schema file in the JRE directory in the PI Server (as we can access JAVA_HOME directory dynamically). No hardcoding for file path.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.