def simpleToType(xsdSimpleType: XsdSimpleType): String = {
val base = xsdSimpleType.getRestriction.getBase
if ( base.startsWith("xs:")) base
else {
println(xsdSimpleType.getName+" from base "+xsdSimpleType.getRestriction.getBase)
println(xsdSimpleType.getRestriction.getSimpleType)
xsdSimpleType.getRestriction.getSimpleType.getRestriction.getBase
}
what I try :
Output :