@@ -347,7 +347,6 @@ xmlgenerator -c config.yml --pretty examples/employee.xsd
347347 <age >27</age >
348348</employee >
349349```
350- * Note: To generate Russian-language data, you may need to specify the locale, for example: ` xmlgenerator -l ru_RU ... ` *
351350
352351* A full list of available functions is provided in [ Appendix 2] ( #appendix-2-placeholder-functions ) * .
353352
@@ -571,31 +570,35 @@ In the `value_override` sections, you can specify either a string value or speci
571570
572571**List of Placeholder Functions:**
573572
574- | Function | Description |
575- |------------------------------------|-------------------------------------------------------------------------------------------------|
576- | `source_filename` | Filename of the source XSD schema with its extension (e.g., `schema.xsd`). |
577- | `source_extracted` | A string extracted from the source XSD filename using the regex specified in `source_filename`. |
578- | `output_filename` | String defined by the `output_filename` configuration parameter. |
579- | `uuid` | A random UUIDv4. |
580- | `regex("pattern")` | A random string value matching the specified regular expression. |
581- | `any('A', "B", C)` | A random value from the provided enumeration. |
582- | `number(A, B)` | A random number between A and B. |
583- | `date("2010-01-01", "2025-01-01")` | A random date within the specified range. |
584- | `last_name` | A random last name. |
585- | `first_name` | A random first name. |
586- | `middle_name` | A random middle name. |
587- | `address_text` | A random full address. |
588- | `administrative_unit` | An administrative unit (e.g., a district). |
589- | `house_number` | A house number. |
590- | `city_name` | A city name. |
591- | `postcode` | A postal code. |
592- | `company_name` | A company name. |
593- | `bank_name` | A bank name. |
594- | `phone_number` | A phone number. |
595- | `inn_fl` | Taxpayer Identification Number (for an individual). |
596- | `inn_ul` | Taxpayer Identification Number (for a legal entity). |
597- | `ogrn_ip` | Primary State Registration Number (for an individual entrepreneur). |
598- | `ogrn_fl` | Primary State Registration Number (for an individual). |
599- | `kpp` | Tax Registration Reason Code (KPP). |
600- | `snils_formatted` | SNILS (Personal Insurance Account Number) formatted as `123-456-789 90`. |
601- | `email` | A random email address. |
573+ | Function | Description |
574+ |------------------------------------|----------------------------------------------------------------------------------------------------------|
575+ | `source_filename` | Filename of the source XSD schema with its extension (e.g., `schema.xsd`). |
576+ | `source_extracted` | A string extracted from the source XSD filename using the regex specified in `source_filename`. |
577+ | `output_filename` | String defined by the `output_filename` configuration parameter. |
578+ | `uuid` | A random UUIDv4. |
579+ | `regex("pattern")` | A random string value matching the specified regular expression. |
580+ | `any('A', "B", C)` | A random value from the provided enumeration. |
581+ | `any_from('./values.txt')` | A random value from a multi-line file |
582+ | `number(A, B)` | A random number between A and B. |
583+ | `date("2010-01-01", "2025-01-01")` | A random date within the specified range. <tr><td colspan="2" align="center">**Personal data**</td></tr> |
584+ | `first_name`__*__ | A random first name. |
585+ | `last_name`__*__ | A random last name. |
586+ | `middle_name`__*__ | A random middle name. |
587+ | `phone_number`__*__ | A phone number. |
588+ | `email`__*__ | A random email address. <tr><td colspan="2" align="center">**Address**</td></tr> |
589+ | `country`__*__ | A random country. |
590+ | `city`__*__ | A random city name. |
591+ | `street`__*__ | A random street. |
592+ | `house_number`__*__ | A house number. |
593+ | `postcode`__*__ | A postal code. |
594+ | `administrative_unit`__*__ | An administrative unit (e.g., a district). |
595+ | `company_name`__*__ | A company name. |
596+ | `bank_name`__*__ | A bank name. <tr><td colspan="2" align="center">**Russian locale only `ru_RU`**</td></tr> |
597+ | `inn_fl` | Taxpayer Identification Number (for an individual). |
598+ | `inn_ul` | Taxpayer Identification Number (for a legal entity). |
599+ | `ogrn_ip` | Primary State Registration Number (for an individual entrepreneur). |
600+ | `ogrn_fl` | Primary State Registration Number (for an individual). |
601+ | `kpp` | Tax Registration Reason Code (KPP). |
602+ | `snils_formatted` | SNILS (Personal Insurance Account Number) formatted as `123-456-789 90`. |
603+
604+ \* It's available to set custom locale via `func("ru_RU")`. Default locale is `en_US`</td></tr>
0 commit comments