Better method for merging elements with same/different ID
This commit is contained in:
parent
e43be5d503
commit
e5a7075c0a
@ -70,7 +70,15 @@ namespace UniversalEditor.ObjectModels.Markup
|
||||
|
||||
foreach (MarkupElement el1 in tag.Elements)
|
||||
{
|
||||
if (Elements.Contains(el1.FullName))
|
||||
string id = null;
|
||||
MarkupTagElement tag1 = (el1 as MarkupTagElement);
|
||||
if (tag1 != null)
|
||||
{
|
||||
MarkupAttribute attID = tag1.Attributes["ID"];
|
||||
if (attID != null) id = attID.Value;
|
||||
}
|
||||
|
||||
if (Elements.Contains(el1.FullName, id))
|
||||
{
|
||||
Elements[el1.FullName].Combine(el1);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user