generalize xsi:type parsing #385