1

I've developed a RESTful web service which can accept xml. I am going to create XSD for the input xml format.

Now, when client sends some invalid xml which is not as per schema, how should i validate it? The values are set in a bean by publisher and stored in a bean by consumer. Now, How do I validate it's schema ?

XML sample:

<xml>
 <one>1</one>
 <two>2</two>
 <a>
   <b/>
   <c/>
</a>
<b>
   <b/>
   <c/>
</b>
</xml>

I hope you understood my question, please clarify.

Paul Samsotha
  • 205,037
  • 37
  • 486
  • 720

0 Answers0