Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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