# Manage Data in XML

We have added useful guides to help you manage your data in an XML file.

## Import Certification Data from XML file

{% hint style="info" %}
**NOTE:** Adding certification via XML is recommended for bulk data import. If you want to update a single record or records not more than 10 certificates we recommend you use the Manual Data Entry.\
\
**Prerequisites:**&#x20;

* Clean and format data according to the IAF CertSearch data structure. [Learn more](/mncb/iaf-certsearch-data-structure/templates.md).
  {% endhint %}

### **(1) To update certification data to an existing Certified Entity via XML**

1. In your text editor, please enter the data into their corresponding tags.

<details>

<summary>XML Fields</summary>

```
<?xml version="1.0" encoding="UTF-8"?>
<mncb_certs>
    <certified_entities>
        <certified_entity>
            <certified_entity_unique_id></certified_entity_unique_id>
            <certified_entity_name></certified_entity_name>
            <certified_entity_trading_name></certified_entity_trading_name>
            <certified_entity_english_name></certified_entity_english_name>
            <confidential_certified_entity></confidential_certified_entity>
            <business_registered_street></business_registered_street>
            <business_registered_city></business_registered_city>
            <business_registered_state></business_registered_state>
            <business_registered_zip_code></business_registered_zip_code>
            <business_registered_country></business_registered_country>
            <business_registered_full_address></business_registered_full_address>
            <certified_entity_website></certified_entity_website>
            <tax_id></tax_id>
            <vat></vat>
            <company_id_number></company_id_number>
            <business_registration_number></business_registration_number>
            <duns_number></duns_number>
        </certified_entity>
    </certified_entities>
    <certifications>
        <certificate_identity_number></certificate_identity_number>
        <certificate_number></certificate_number>
        <certification_status></certification_status>
        <certification_type></certification_type>
        <certification_scope></certification_scope>
        <flexible_scope></flexible_scope>
        <certification_original_issue_date></certification_original_issue_date>
        <certification_issue_date></certification_issue_date>
        <certification_expiry_date></certification_expiry_date>
        <certified_entity_unique_id></certified_entity_unique_id>
        <main_site_street></main_site_street>
        <main_site_city></main_site_city>
        <main_site_state></main_site_state>
        <main_site_zip_code></main_site_zip_code>
        <main_site_country></main_site_country>
        <main_site_full_address></main_site_full_address>
        <certification_body_identity_number></certification_body_identity_number>
        <certification_body_name></certification_body_name>
        <certification_body_acronym></certification_body_acronym>
        <accreditation_body_name></accreditation_body_name>
        <accreditation_body_acronym></accreditation_body_acronym>
        <certification_standard_and_scheme>
            <standard_and_scheme>
                <scheme_name></scheme_name>
                <standard_name></standard_name>
            </standard_and_scheme>
            <standard_and_scheme>
                <scheme_name></scheme_name>
                <standard_name></standard_name>
            </standard_and_scheme>
        </certification_standard_and_scheme>
        <certification_sites>
            <certification_site>
                <certified_entity_unique_id></certified_entity_unique_id>
                <street></street>
                <city></city>
                <state></state>
                <zip_code></zip_code>
                <country></country>
                <full_address></full_address>
                <scope></scope>
                <site_type></site_type>
            </certification_site>
            <certification_site>
                <certified_entity_unique_id></certified_entity_unique_id>
                <street></street>
                <city></city>
                <state></state>
                <zip_code></zip_code>
                <country></country>
                <full_address></full_address>
                <scope></scope>
                <site_type></site_type>
            </certification_site>
        </certification_sites>  
    </certifications>
</mncb_certs>
```

</details>

\
To learn more about Certification fields, click here

2. Once completed, go to the IAF CertSearch Data Import page
3. Choose how you would like to import your data
   * **File Upload** - [Learn how to import data through File Upload](/mncb/data-management/data-import/data-import-methods/file-upload.md)
   * **FTP -** [Learn how to import data through FTP](/mncb/data-management/data-import/data-import-methods/ftp.md)
4. Once selected, click the **Continue** button (the system will initiate file and data processing)
5. If all the files and data are valid, the certificate will be successfully added to the existing Certified Entity record.

{% hint style="info" %}
**Note:** If errors are encountered during the import process, go to [Error Handling.](/mncb/error-handling/error-handling.md)
{% endhint %}

### **(2) To add certification data to a new Certified Entity record**

1. In your text editor, please enter the data into their corresponding tags.
2. Once completed, go to the IAF CertSearch Data Import page
3. Choose how you would like to import your data
   * **File Upload** - [Learn how to import data through File Upload](/mncb/data-management/data-import/data-import-methods/file-upload.md)
   * **FTP -** [Learn how to import data through FTP](/mncb/data-management/data-import/data-import-methods/ftp.md)
4. Once selected, click the **'Continue'** button *(which initiates data validation)*
5. If all the files and data are valid, the Certified Entity and Certification records will be successfully added.

-> To view the added certifications go to the **Certification** listing page

-> To view the added certifications go to the **Certified Entity** listing page


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://support.iafcertsearch.org/mncb/data-management/data-import/certification-file-templates/manage-data-in-xml.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
