Skip to content

Commit

Permalink
Fix bug #54 Unhandled Exception: System.Xml.Schema.XmlSchemaException…
Browse files Browse the repository at this point in the history
…: The global element has already been declared.
  • Loading branch information
MarkoKacprzak committed Mar 30, 2018
1 parent 738e333 commit 88ddb09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions XmlSchemaClassGenerator/Generator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,8 @@ public void Generate(IEnumerable<string> files)
}));

foreach (var s in schemas)
{
Set.Add(s);
{
Set.Add(s.TargetNamespace, s.SourceUri);
}

Set.Compile();
Expand Down

0 comments on commit 88ddb09

Please sign in to comment.