I am trying to use the xml configuration file in my project. Now it looks like this:
<?xml version="1.0" encoding="utf-8" ?> <configuration> <configSections> <section name="replication" type="Project.Replication.ReplicationConfigSection, Project.Replication" /> <section name="processing" type="Project.Processing.ProcessingConfigSection, Project.Processing" /> </configSections> <replication> <streams> <stream name="STREAM_DATA_14360" /> </streams> </replication> <processing dataStream="STREAM_DATA_14360" /> </configuration>
It works fine, but I'm confused with its duplicates ( "STREAM_DATA_14360" ).
Can you remind me how to create variables in XML or something so that data reuse is acceptable in the application configuration?
UPDATE:
In real life, my configuration has many more sections. There is a meaning that occurs in many of these sections: STREAM_DATA_14360 . Therefore, I want to be able to change this value only in one place of the configuration file, and in other places use a link to it.
The speed of configuration changes is the first reason for this.
The file size is a second because the values ββcan be huge: STREAM_INFO_FUTURE_SESSION_CONTENTS_12421 (these are the names of third-party developers)
astef source share