Deserialize XML

Hi,

Step 1. Write a xml, I have below xml file,

Step 2. Take a activity called “ReadTextFile”, provide xml file path. it has properties called Content, create a String variable.

Step 3. Take a “Deserialize Xml” activity, provide that String variable to XmlString property & Create variable type XmlDocument.

Step 4. Display/print content of xml in message box/write line, write below statement,
"Question: " + DeserializeStrConfig.Element(“eservice”).Element(“field”).Element(“question”).Value
"Answer: " + DeserializeStrConfig.Element(“eservice”).Element(“field”).Element(“answer”).Value

Output will look like,
Question: Personnummer
Answer: 194112249166

3 Likes