Last post Jul 18, 2012 08:58 PM by Decker Dong - MSFT
Jul 16, 2012 09:11 PM|akhilrajau|LINK
I need to validate xml against xsd. I am using xml elements sample is follows
This is my xml format. Here the ID and Name is mandatory field. So any possibility to check the xml whether the ID element value is missing using xsd. How design the xsd for that?
Jul 17, 2012 05:16 AM|shabirhakim1|LINK
Actually xsd is taking care of validation using attributes like
See here for you example
see example with code
Jul 17, 2012 09:53 PM|akhilrajau|LINK
Thanks for the reply. But this minOccurs and maxOccurs is define the element is optional or occurance of the element. am i right. I want mandatory value in the element value. I got the solution from the following link
Jul 18, 2012 01:13 AM|shabirhakim1|LINK
minOccurs="1" is the default, you don't have to explicitly state that.
Jul 18, 2012 08:58 PM|decker dong - msft|LINK
I got the solution from the following link
Thanks for sharing us your nice solution and welcome come back next time……