Getting Max occurances and min occurances of XSD file using java

I am trying to get validate Xml file using XSD and there is one tag whose min occurance is 1 but as it is empty so I am unable to validate this tag. Is there any way to get min occur and max occur of all tags or particular tag using java