how can get value "resolution_height"? from xml file?

04/21/2020 11:12 akitsukie#1
Code:
<?xml version="1.0"?>
<HyperV xmlns="as" version="1.12-windows">
<Machine uuid="{20200419-aaaa-aaaa-aaaa-000000000001}" name="Deneme" OSType="Linux" snapshotFolder="Snapshots" lastStateChange="2020-04-20T21:40:17Z">
 <Hardware version="2">
 <GuestProperties>
        <GuestProperty name="resolution_height" value="800" timestamp="1587374465852501700" flags=""/>
        <GuestProperty name="resolution_width" value="450" timestamp="1587374465714493800" flags=""/>
        <GuestProperty name="selected_map" value="1" timestamp="1580068447643981700" flags=""/>
        </GuestProperties>
  </Hardware>
 </Machine>
</Hyperv>
how can i get "resolution_height" value and change it from a xml file?
04/21/2020 11:40 Ludder231#2
for reading a value you could use regex or use System.Xml parser

04/21/2020 13:00 akitsukie#3
Thanks I tried, but I could not do it on my own example

Quote:
Originally Posted by Ludder231 View Post
for reading a value you could use regex or use System.Xml parser

Thanks I tried but I couldn't
04/21/2020 20:26 Ludder231#4
Quote:
Originally Posted by akitsukie View Post
Thanks I tried, but I could not do it on my own example



Thanks I tried but I couldn't
i hate the xml serializer so i did it with htmlagilitypack(via nuget)