---
title: "Product data V3.1 · mainClassType"
canonical: "https://knowledge-hub.onetrail.com/space/docs/725778461/Product+data+V3.1+%C2%B7+mainClassType"
format: markdown
---
**Complex type** in namespace `http://schema.onetrail.net/ns/receive-request-response` · part of [Product data V3.1](https://onetrail.atlassian.net/wiki/spaces/docs/pages/718700753)

## Diagram

![mainClassType diagram](media://edd0f18a-3a27-4b55-afef-7749505b42ca)

## Content

Text content of type `xsd:string`, with the attributes below.

## Attributes

| Attribute | Type | Use | Description |
| --- | --- | --- | --- |
| **@type** | `xsd:string` | [required] | lang is the language code (ISO 639-1 code 2) by the International Organization for Standardization (ISO), which represents names for language and language groups. The language code consists out of 2 letters. The default setting is "EN" for "English". |
| **@id** | `xsd:string` | optional | id refers to the main category or classification identification (ID) of an article. |

## Used by

- [basicInfoType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/726892795) / **mainClass**

<details>
<summary>XSD source</summary>

```xml
<xsd:complexType name="mainClassType">
        <xsd:simpleContent>
            <xsd:extension base="xsd:string">
                <xsd:attribute name="type" type="xsd:string" use="required">
                    <xsd:annotation>
                        <xsd:documentation>lang is the language code (ISO 639-1 code 2) by the International Organization for Standardization (ISO), which represents names for language and language groups. The language code consists out of 2 letters. The default setting is "EN" for "English".</xsd:documentation>
                    </xsd:annotation>
                </xsd:attribute>
                <xsd:attribute name="id" type="xsd:string">
                    <xsd:annotation>
                        <xsd:documentation>id refers to the main category or classification identification (ID) of an article.</xsd:documentation>
                    </xsd:annotation>
                </xsd:attribute>
            </xsd:extension>
        </xsd:simpleContent>
    </xsd:complexType>

```
</details>