Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-Block committed Aug 8, 2024
1 parent bdcc80b commit b212117
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/AasxDictionaryImport/Eclass/Model.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,12 @@ public override bool IsValidPath(string path)
{
// Verify that the root element is eclass_dictionary and find the header element for different
// schema versions
if (reader.IsStartElement("eclass_dictionary", Namespaces.Dic30.NamespaceName))
if (reader.IsStartElement("eclass_dictionary", Namespaces.Dic40.NamespaceName))
{
if (!reader.ReadToDescendant("header", Namespaces.Hea40.NamespaceName))
return false;
}
else if (reader.IsStartElement("eclass_dictionary", Namespaces.Dic30.NamespaceName))
{
if (!reader.ReadToDescendant("header", Namespaces.Hea30.NamespaceName))
return false;
Expand Down Expand Up @@ -869,9 +874,13 @@ internal static class Namespaces

public static XNamespace Dic30 = "urn:eclass:xml-schema:dictionary:3.0";

public static XNamespace Dic40 = "urn:eclass:xml-schema:dictionary:4.0";

public static XNamespace Hea20 = "urn:eclass:xml-schema:header:2.0";

public static XNamespace Hea30 = "urn:eclass:xml-schema:header:3.0";

public static XNamespace Hea40 = "urn:eclass:xml-schema:header:4.0";
}

internal static class Extensions
Expand Down

0 comments on commit b212117

Please sign in to comment.