How can I print the text inside the specific nodes in resx file using XmlDocument methods?

63 Views Asked by At

I have this RESX file and I want to print the text thats inside the value node inside the resheader node and I want to also print a text from the value inside the data node into the console , how would I do that inside c# ?

<?xml version="1.0" encoding="utf-8"?>
<Users>
  <resheader name="user">
    <value>jacob</value>
  </resheader>
  <resheader name="platform">
    <value>PC</value>
  </resheader>
  <resheader name="pctype">
    <value>gaming</value>
  </resheader>
  <resheader name="budget">
    <value>1000$</value>
  </resheader>
  <data name="versionpc">
    <value>version xxxx</value>
  </data>
  <data name ="storage">
    <value>1 tb </value>
  </data>
</Users>
1

There are 1 best solutions below

0
Rivo R. On