added proper handling for <xml-schema-element>