def class_for(n)
      class_mapping = {
        "#{schema_namespace_prefix}schema" => Schema,
        "#{schema_namespace_prefix}element" => Element,
        "#{schema_namespace_prefix}attribute" => Attribute,
        "#{schema_namespace_prefix}choice" => Choice,
        "#{schema_namespace_prefix}complexType" => ComplexType,
        "#{schema_namespace_prefix}sequence" => Sequence,
        "#{schema_namespace_prefix}simpleContent" => SimpleContent,
        "#{schema_namespace_prefix}complexContent" => ComplexContent,
        "#{schema_namespace_prefix}extension" => Extension,
        "#{schema_namespace_prefix}import" => Import,
        "#{schema_namespace_prefix}simpleType" => SimpleType
      }

      return class_mapping[n.is_a?(Nokogiri::XML::Node) ? n.name : n]
    end
def class_for(n)
      class_mapping = {
        "#{schema_namespace_prefix}schema" => Schema,
        "#{schema_namespace_prefix}element" => Element,
        "#{schema_namespace_prefix}attribute" => Attribute,
        "#{schema_namespace_prefix}choice" => Choice,
        "#{schema_namespace_prefix}complexType" => ComplexType,
        "#{schema_namespace_prefix}sequence" => Sequence,
        "#{schema_namespace_prefix}simpleContent" => SimpleContent,
        "#{schema_namespace_prefix}complexContent" => ComplexContent,
        "#{schema_namespace_prefix}extension" => Extension,
        "#{schema_namespace_prefix}import" => Import,
        "#{schema_namespace_prefix}simpleType" => SimpleType
      }

      return class_mapping[n.is_a?(Nokogiri::XML::Node) ? n.name : n]
    end
Node to class mapping