| Crates.io | fmi-schema |
| lib.rs | fmi-schema |
| version | 0.5.0 |
| created_at | 2024-02-11 12:04:05.241166+00 |
| updated_at | 2025-08-23 17:04:45.672896+00 |
| description | XML schema support for FMI 2.0 and 3.0 |
| homepage | https://github.com/jondo2010/rust-fmi |
| repository | https://github.com/jondo2010/rust-fmi |
| max_upload_size | |
| id | 1135797 |
| size | 156,664 |
XML schema support for FMI 2.0 and 3.0. This crate is part of rust-fmi.
The reference XSI can be found at https://fmi-standard.org/downloads.
FMI 2.0 and 3.0 have different XML schemas.
The FMI version can initially be determined in a non-specific way by using [minimal::ModelDescription].
# use std::str::FromStr;
#[cfg(feature = "fmi3")]
let md = fmi_schema::fmi3::Fmi3ModelDescription::from_str(
std::fs::read_to_string("tests/FMI3.xml").unwrap().as_str(),
)
.unwrap();
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.