> For the complete documentation index, see [llms.txt](https://support.iafcertsearch.org/certification-bodies/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.iafcertsearch.org/certification-bodies/cb-ja/data-management/data-import/certification-templates/xml-general-rules.md).

# XMLの一般ルール

### 一般的なルール <a href="#general-rule" id="general-rule"></a>

XMLファイルを介して認証データを正常にアップロードするための一般的なルールは以下の通りです：

<table data-header-hidden><thead><tr><th width="222"></th><th></th></tr></thead><tbody><tr><td><strong>ファイル形式</strong></td><td>ファイル形式は<code>.xml</code>である必要があります</td></tr><tr><td><strong>ファイルサイズ</strong></td><td>XMLファイルの最大サイズは50MBです。もしXMLファイルが50MBを超える場合、それを分割して50MB未満の複数のファイルをアップロードする必要があります。</td></tr><tr><td><strong>ファイル名</strong></td><td>IAF CertSearchでは、以下の形式でファイル名を付けることをお勧めします：単一の場合：<code>cb_certs.xml</code>複数のファイルの場合：<code>cb_certs_1.xml</code>、<code>cb_certs_2.xml</code>、<code>cb_certs_3.xml</code></td></tr><tr><td><strong>XMLタグ</strong></td><td>XMLのタグはテンプレートと同じである必要があります。変更された場合、IAF CertSearchはフィールドデータを認識せず、アップロードされません<strong>。</strong></td></tr><tr><td><strong>XMLタグの順序</strong></td><td>タグは順序通りであり、テンプレートと同じでなければなりません。変更された場合、IAF CertSearchはタブを認識せず、それらのタブのデータはアップロードされません。</td></tr></tbody></table>

## XMLファイル形式の理解

### 重要なノート

1. **XMLドキュメントには、他のすべての要素の親である1つのルート要素が含まれている必要があります:**\
   認証のアップロードには、ルート要素は`<client_certs></client_certs>`です\\
2. この行は**XMLプロローグ**と呼ばれます：`<?xml version="1.0" encoding="UTF-8?">`\
   XMLプロローグはオプションです。存在する場合、ドキュメントの最初に来る必要があります。XMLドキュメントには、ノルウェーのøæåやフランスのêèéのような国際文字が含まれることがあります。エラーを回避するためには、使用されているエンコーディングを指定するか、XMLファイルをUTF-8として保存する必要があります。UTF-8はXMLドキュメントのデフォルトの文字エンコーディングです。\\
3. **すべてのXML要素には終了タグが必要です**\
   XMLのタグは大文字・小文字を区別します。 `<tag>`と`<Tag>`は異なるタグです。開始タグと終了タグは同じケースで書かれなければなりません：\
   \
   閉じられていないタグはエラーになります：**無効なXMLファイルがアップロードされました**\ <mark style="color:red;">**間違い:**</mark> <mark style="color:red;">`<certification_body_identity_number>%VALUE GOES HERE`</mark>\
   \ <mark style="color:green;">**正しい:**</mark> <mark style="color:green;">`<certification_body_identity_number>%VALUE GOES HERE</certification_body_identity_number>`</mark>\
   \\
4. **XML要素は正しくネストする必要があります**

   XMLでは、すべての要素を適切に入れ子にする必要があります：\
   \ <mark style="color:red;">**間違い:**</mark>\ <mark style="color:red;">`<certification_identity_number>`</mark>\ <mark style="color:red;">`<certification>`</mark>`CERT-0001`<mark style="color:red;">`</certification_identity_number>`</mark>\ <mark style="color:red;">`</certification>`</mark>\
   \ <mark style="color:green;">**正しい:**</mark>\ <mark style="color:green;">\<certification></mark>\ <mark style="color:green;">\<certification\_identity\_number></mark>CERT-0001<mark style="color:green;">\</certification\_identity\_number>\</certification></mark>\\
5. **タグに空白を含めることはできません**\
   **例：** <mark style="color:red;">`<certification identity number>`</mark>\
   この構文は認識されず、エラーが発生します：**無効なXMLファイルがアップロードされました**\\
6. **XMLファイルをアップロードする場合、すべての親のタグを含める必要があります。** 親のタグが不足している場合、システムはエラーをスローします：**無効なXMLファイルがアップロードされました**\\
7. **認証\_standard\_and\_schemeとその子が空の場合**、システムはエラーをスローします：**無効なXMLファイルがアップロードされました**\\
8. **オプションのフィールドに無効なタグがある場合はエラーが発生しません**が、タグ内に追加されたデータはシステムに表示されません\
   \ <mark style="color:green;">**正しい:**</mark><mark style="color:green;">`<original_issue_date>01/20/2021</original_issue_date>`</mark>\ <mark style="color:red;">**間違い（ファイルから）:**</mark> <mark style="color:red;">\<orig\_issued\_date>01/20/2021\</orig\_issued\_date></mark>\
   \
   **システムに表示されるデータ**\
   元の発行日：＿（空白）＿

### XMLでデータをフォーマットする際のDOsとDONTs

XMLファイルにデータを入力する際に念頭に置くべきこと。

### <mark style="color:green;">**DOs**</mark>

1. **タグごとに単一のデータ値を入力してください**

   単一のデータ値のみが1つのタグに入力されていることを確認してください。複数のデータ値をアップロードする場合、1つのタグに複数のデータ値を含めないでください。
2. **データの形式を一貫して保つ**

   スペース、大文字小文字のミスマッチなど、他の種類のフォーマットの不一致により、エラーが発生し、データが一致しません
3. **提供されたテンプレートの構文に似ている構文を維持してください**

### <mark style="color:red;">**DONTs**</mark>

1. **必須フィールドを空白または空のままにしないでください**
2. **1つのタグに複数のデータを追加しないでください**
3. **1つのタグに複数のデータを結合しないでください**

#### &#x20;<a href="#dos-and-donts-when-formatting-data-in-an-xml" id="dos-and-donts-when-formatting-data-in-an-xml"></a>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://support.iafcertsearch.org/certification-bodies/cb-ja/data-management/data-import/certification-templates/xml-general-rules.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
