# XML सामान्य नियम

### सामान्य नियम <a href="#general-rule" id="general-rule"></a>

एक एक्सएमएल फ़ाइल के माध्यम से प्रमाणीकरण डेटा सफलतापूर्वक अपलोड करने के लिए यहां सामान्य नियम हैं:

<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>एक्सएमएल फ़ाइलों के लिए अधिकतम फ़ाइल आकार 50 एमबी है। यदि आपकी एक्सएमएल फ़ाइल 50 एमबी से अधिक है तो आपको इसे विभाजित करना होगा और 50 एमबी से कम हर फ़ाइल को अपलोड करना होगा।</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>एक्सएमएल टैग</strong></td><td>एक्सएमएल टैग टेम्प्लेट में जितने ही होने चाहिए। यदि बदलते हैं, तो IAF CertSearcg क्षेत्र डेटा की पहचान नहीं करेगा और यह अपलोड नहीं होगा।<strong>.</strong></td></tr><tr><td><strong>एक्सएमएल टैग क्रम</strong></td><td>टैग क्रम में होना चाहिए और टेम्प्लेट में ही उसी षड्यंत्र के साथ होना चाहिए। यदि बदलते हैं, तो IAF CertSearch उन टैब को नहीं पहचानेगा और उन टैब में डेटा अपलोड नहीं करेगा।</td></tr></tbody></table>

## एक्सएमएल फ़ाइल प्रारूप को समझना

### महत्वपूर्ण ध्यान दें

1. **एक्सएमएल दस्तावेज़ों में सभी अन्य तत्वों के मूल तत्व को शामिल करना चाहिए:**\
   प्रमाण प्रेषण के लिए, मूल तत्व `<client_certs></client_certs>` है\\
2. यह पंक्ति **एक्सएमएल प्रोलाग** कहलाती है: `<?xml version="1.0" encoding="UTF-8?">`\
   एक्सएमएल प्रोलाग वैकल्पिक है। यदि यह मौजूद है, तो यह दस्तावेज़ में सबसे पहले होना चाहिए। एक्सएमएल दस्तावेज़ों में अंतरराष्ट्रीय वर्ण, जैसे नॉर्वेजियन øæå या फ़्रेंच êèé, शामिल किए जा सकते हैं। त्रुटियों से बचने के लिए, आपको उपयोग किए गए एनकोडिंग को स्पष्ट करना चाहिए, या अपने एक्सएमएल फ़ाइलों को UTF-8 के रूप में सहेजना चाहिए। UTF-8 एक्सएमएल दस्तावेज़ों के लिए डिफ़ॉल्ट वर्ण एनकोडिंग है।\\
3. **सभी एक्सएमएल तत्वों में एक बंद टैग होना चाहिए**\
   एक्सएमएल टैग मामूली रूप से होते हैं। यह टैग टैग से अलग होता है। ओपनिंग और क्लोजिंग टैग एक ही रुप में लिखे जाने चाहिए:\
   \
   जो भी टैग खुले छोड़ दिए जाएंगे, उससे त्रुटि होगी: **Invalid XML file uploaded**\ <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. **एक्सएमएल तत्वों को सही ढंग से नेस्टेड होना चाहिए**

   एक्सएमएल में, सभी तत्वों को एक दूसरे के भीतर सही ढंग से नेस्टेड होना चाहिए:\
   \ <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>\
   सिस्टम इस लिपिकरण को पहचान नहीं करेगा और यह त्रुटि दिखाएगा: **Invalid XML file uploaded**\\
6. **एक्सएमएल फ़ाइल अपलोड करते समय सभी मुख्य टैगों को शामिल किया जाना चाहिए,** अगर मुख्य टैग गायब होंगे, तो सिस्टम एक त्रुटि दिखाएगा: **Invalid XML file uploaded**\\
7. **If the certification\_standard\_and\_scheme and its children are empty**, the system will throw an error: **Invalid XML file uploaded**
8. **Invalid tags for optional fields will not trigger an error**, but the data added within the tag won't be displayed in the system \\

   <mark style="color:green;">**Correct:**</mark><mark style="color:green;">\<original\_issue\_date>01/20/2021\</original\_issue\_date></mark> <mark style="color:red;">**Wrong (from file):**</mark> <mark style="color:red;">\<orig\_issued\_date>01/20/2021\</orig\_issued\_date></mark>\
   \
   **Data displayed in the system**\
   Original Issued Date: *(empty)*

### DOs and DONTs when formatting data in an XML

Things to keep in mind when populating your data into an XML file.

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

1. **Single data value entry per tag**

   Ensure only single data values are entered into one tag. When uploading multiple data values don’t include more than one data value in one tag.
2. **Keep data format consistent**

   A mismatch in spaces, capitalization, and other types of formatting will cause an error and data will not be matched
3. **Keep the syntax similar to what is provided in the template**

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

1. **Do not leave the mandated fields blank or empty**
2. **Do not add multiple data to a 1 tag**
3. **Do not merge multiple data to a 1 tag**


---

# 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/accreditation-bodies/ab-hi/undefined-1/import-certification/certification-file-templates/xml-general-rules.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.
