Skip to content

Creating a new eFMU fails at XML validation #6

@bavcol

Description

@bavcol

I tried to create a eFMU as shown in Example in 1 README.md:

eFMUContainerManager.CLI.exe
--create
--name "Example eFMU created using the eFMI Container Manager"
--inputdir directory/with/eFMI/schemas
--output my-eFMU.fmu

But the command fails as follows:

Call arguments:
 ContainerOperation: CreateContainer
 InputDir: C:\Users\fwerner\Apps\eFMI-Container-Manager-1-0-1\eFMI-Standard-1.0.0-Beta-1\xml-schema-definitions
 OutputPath: container.fmu
 ForceOverwriting: False

Container will be managed in temporary directory 'C:\Users\fwerner\AppData\Local\Temp\rcyw3civ.ngd'      
>> Copying schema files

=== Dump of content of EFMU container ===
 id: {d8c11dc8-9495-4a05-878f-7e9c7e8b487a}
 xsdVersion: 0.10.0
 efmiVersion: 1.0.0
 name: Example eFMU created using the eFMI Container Manager
 creationDate: 2025-06-18T12:32:40Z
=== END of dump ===

>> Writing container manifest
> Creating XML tree from internal representation
> Validating XML tree against schema (write container manifest XML file)
Error: Validation failed in unknown line: The value of the 'xsdVersion' attribute does not equal its fixed value.
(The error message(s) stem from from XDocument.Validate(..) )
=> Validation encountered 1 error(s)

I tried providing eFMI-Standard-1.0.0-Beta-1\xml-schema-definitions as well as eFMI-Standard-1.0.0-Alpha-4\schemas, but both command fail with the error above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions