Im not too familiar with XML. Here’s the part of the XML-document:
I would like to get the value of the ‘native’ attribute in the ‘callid’ -element.
I have tried this on Write Line, after using the Deserialize Xml -Activity:
resultXML.Element(“callid”).Attribute(“native”).Value.ToString and many other variations of this. It doesn’t work. Only gives this error: Write line : Object reference not set to an instance of an object.
Is there a way I could get the value of the attribute quickly and easily with a command like that?
I have tried other solutions found on this forum, but they don’t wor for this file for some reason.
EDIT: also I’ve tried the execute XPath activity with: “//callid/@native”
It gives the result as an Object-variable. Is there a way I could print that as a string?