C# after performing GET from the API it returns the XML code embedded in the HTML file similar to this:
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="initial-scale=1, width=device-width">
<title>config</title>
</head>
<body>
<CONFIG="2"/>
<VALUE1="1"/>
<VALUE2="2"/>
<CONFIGEND="0"/>
</body>
</html>
I am trying to save the XML content from the body "<CONFIG ... CONFIGEND="0"/>" out to a file. My attempts using HtmlAgilityPack result in the XML data being modified as follows:
<CONFIG="2"></CONFIG>
...
<CONFIGEND="0"></CONFIGEND>
I am new to C# (and programming in general) so please be kind. Search attempts have left me more confused than I started :/