Checks Configuration.xml for structural errors: XML well-formedness, InternalInfo, properties, enum values, ChildObjects, DefaultLanguage, language files, object directories.
Parameters and command
| Parameter | Description |
|---|---|
ConfigPath |
Path to Configuration.xml or the export directory |
MaxErrors |
Stop after N errors (default: 30) |
OutFile |
Write the result to a file (UTF-8 BOM) |
powershell.exe -NoProfile -File .claude/skills/cf-validate/scripts/cf-validate.ps1 -ConfigPath "<путь>"
Checks performed
| # | Check | Severity |
|---|---|---|
| 1 | XML well-formedness, MetaDataObject/Configuration, version 2.17/2.20 | ERROR |
| 2 | InternalInfo: 7 ContainedObject, valid ClassId, uniqueness | ERROR |
| 3 | Properties: Name not empty, Synonym, DefaultLanguage, DefaultRunMode | ERROR/WARN |
| 4 | Properties: enum values (11 properties) | ERROR |
| 5 | ChildObjects: valid type names (44 types), no duplicates, type order | ERROR/WARN |
| 6 | DefaultLanguage references an existing Language in ChildObjects | ERROR |
| 7 | Language files Languages/.xml exist | WARN |
| 8 | Object directories from ChildObjects exist (spot-check) | WARN |
Output
=== Validation: Configuration.МояКонфигурация ===
[OK] 1. Root structure: MetaDataObject/Configuration, version 2.17
[OK] 2. InternalInfo: 7 ContainedObject, all ClassIds valid
[OK] 3. Properties: Name="МояКонфигурация", Synonym present
[OK] 4. Property values: 11 enum properties checked
[OK] 5. ChildObjects: 1 types, 1 objects, order correct
[OK] 6. DefaultLanguage "Language.Русский" found in ChildObjects
[OK] 7. Language files: 1/1 exist
[OK] 8. Object directories: spot-check passed
=== Result: 0 errors, 0 warnings ===
Exit code: 0 = OK, 1 = errors.
Examples
# Пустая конфигурация
... -ConfigPath upload/cfempty
# Реальная конфигурация
... -ConfigPath C:\WS\tasks\cfsrc\acc_8.3.24
# С лимитом ошибок
... -ConfigPath test-tmp/cf -MaxErrors 10