Junilu Lacar wrote:
Alric Rayan wrote:
Stephan van Hulst wrote:Yes, XML 1 is invalid according to your schema.
exactly can you help me to get both validated. I am stuck on this part
Stephan already gave you his suggestion: make the Date, Comment, and User elements under Reject optional elements.
Google for xml optional elements
Stephan van Hulst wrote:Yes, XML 1 is invalid according to your schema.
Stephan van Hulst wrote:Why yes, you have an empty <Reject/> element in your XML, which doesn't conform to your new schema.
Why have you declared RejectOne and RejectTwo if you're not using them?
The content of the element 'Reject' is incomplete. Expected list of possible elements : 'Comment, User, Date'.
Paul Clapham wrote:Okay... what makes you think it didn't validate both XMLs?
Alric Rayan wrote:I would like to be able to define the Actions element of the XML document by creating a complex XSD custom type that can check the Actions element of my XML.
But I can't do it.