Erre vannak az XSD to kód generátorok. Megmutatod neki az XSD-t majd lesz n darab classod a megfelelő hierarchiában.