support multi-xsd import
automatically detect type of attachment element