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.
Paul Clapham wrote:Okay... what makes you think it didn't validate both XMLs?
Often the most important part of the news is what they didn't tell.
The content of the element 'Reject' is incomplete. Expected list of possible elements : 'Comment, User, Date'.
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?
Alric Rayan wrote:It is normal that my xml has an empty reject. I have to validate two xml where one has an "empty reject" and the other one doesn't.
Stephan van Hulst wrote:Yes, XML 1 is invalid according to your schema.
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
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
"Don't believe every tiny ad you see on the internet. But this one is rock solid." - George Washington
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|