Getting xsd restrictions of specific xml element

m30c0nx

New Member
Is it possible to get restrictions of specific element when I'm parsing xml file in Java?For example if I have schema\[code\]<xs:element name="MyString" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="http://stackoverflow.com/questions/10945640/100"/> </xs:restriction> </xs:simpleType></xs:element>\[/code\]when I get node MyString during xml file parsing I want to be able to acquire information that it's restrictions are xs:string and maxLength = 100.
 
Back
Top