Is it possible that If I modify a file, It will be modified the other file?

LooBi 141 Reputation points
2022-03-30T05:57:14.927+00:00

Let's say
There are two(or more) xml files.

They are related.

so If I have to modify <Label key="apple"> to <Label key="grape"> in a.xml ,
I have to modify <item>apple</item> to <item>grape</item> in b.xml too.

I find the way
I modify one place, find it the other file and replace it at the same time.
The purpose is to avoid human erros.

a.xml
188579-image.png

b.xml
188586-image.png

and my code
https://learn.microsoft.com/en-us/answers/questions/774085/try-to-make-notepad-with-wpf.html

Thank you!

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,562 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
712 questions
{count} votes