Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to programmatically validate XML against XSD?

437985Oct 15 2007 — edited Oct 15 2007
Hi all.

I need to develop a POC which has the following requirement:

1 - An XML file containing product information must be read and its content must be validated against an XML Schema.

2 - If the XML file is not compliant to the XML Schema, I must write an XML into a directory. This is a response file telling to the client that the XML file sent is in a bad format.

I know that both ESB and BPEL have automatic Schema validation, but to acomplish this requirement I need to have control over the validation process. For example, if it were possible to validate an XML file using an XPath funcion, the use case would be easy to develop:

if validateXML() == false
writeXMLFileError;

Any ideas?? I have ESB and BPEL available for this.

Thanks

Denis
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 12 2007
Added on Oct 15 2007
5 comments
2,158 views