Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
http request result used in macro
#2
If need only state, the simplest way to get it is a regular expression. Or if don't want to learn regular expressions, use function find and str.get.
If need a single XML element, usually is used XPath, but this XML is too simple. Just get the child element.

Macro Macro201
Code:
Copy      Help
str xml=
;<root>
;;;<a>a</a>
;;;<state>stopped</state>
;</root>

IXml x._create
x.FromString(xml)
IXmlNode e = x.RootElement.Child("state")
out e.Value


Messages In This Thread
http request result used in macro - by pctechtv - 06-03-2019, 03:12 AM
RE: http request result used in macro - by Gintaras - 06-07-2019, 07:28 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)