Добавление или создание XML переменных - PullRequest
0 голосов
/ 16 июня 2020

Здравствуйте, я новичок в программировании. Я пытаюсь добавить переменные в файл темы.

Мой файл темы имеет такую ​​структуру:

<?xml version="1.0" encoding="utf-8"?>
<IndustryColorTheme name="" author="">
  <!--Form-->
  <MainBoxBorderColor description="Color of a space around messages/contact/event/task list">White</MainBoxBorderColor>
  <FormBackground description="Background color of all windows">#282828</FormBackground>
  <FormForeground description="Color of texts in all windows">#E9E9E9</FormForeground>

Можно ли добавить такую ​​переменную, например:

  Maincolor = #FF0000
  <MainBoxBorderColor description="Color of a space around messages/contact/event/task list">White</MainBoxBorderColor>
  <FormBackground description="Background color of all windows">Maincolor</FormBackground>
  <FormForeground description="Color of texts in all windows">Maincolor</FormForeground>
...