-1
У меня есть файл XMLКопирование Xml узлы в других узлах Xml
<students>
<student>
<identity>
<key>101</key>
</identity>
<information>
<name>abc</name>
<age>12</age>
<address>xyz</address>
.....
</information>
<otherinformation>
<project>
<name>project1</name>
<duration>three months</duration>
</project>
.......
</otherinformation>
</student>
<student>
<identity>
<key>102</key>
</identity>
<information>
<name>def</name>
<age>12</age>
<address>uvw</address>
.....
</information>
<otherinformation>
<project>
<name>project2</name>
<duration>one month</duration>
</project>
</otherinformation>
</student>
</students>
Таким образом заданное значение ключ 101, я хотел бы, чтобы скопировать информационный узел и otherinformation
всем студент независимо от ключей у них есть. поэтому в этом случае ученик с ключом 102 будет иметь такую же информацию и узел otherinformation
, как и в ключе 101 после копирования.
Как я могу это достичь?
Вы ищете XLINQ. – SLaks
Можем ли мы сделать это с помощью XLINQ? поскольку xml-файл является большим около 30 000 строк, поэтому я ищу несколько решений. –