EoinCollins1303836

REST WebService Job returns XML format - pass to XML Variable

Discussion created by EoinCollins1303836 on Oct 16, 2017
Latest reply on Oct 16, 2017 by EoinCollins1303836
I am consuming a REST service, which provides a response in XML. Can I pass this XML into an XML variable, for future processing?
Whenever I try,  parsing of the XML fails when an element is repeated, even though XML structure is valid.
e.g.
<Servers>
         <Server>
            <Name>Server Name 1</Name>
            <Server_Group/>
            <OS_Version/>
            <OS/>
            <OS_Service_Pack/>
         <Server>
         <Server>
            <Name>Server Name 2</Name>
            <Server_Group/>
            <OS_Version/>
            <OS/>
            <OS_Service_Pack/>
         </Server>
         <Server>
            <Name>Server Name 3</Name>
            <Server_Group/>
            <OS_Version/>
            <OS/>
            <OS_Service_Pack/>
         </Server>
<Servers>
Error is:
Error occurred in XML processing LPX-00245: extra data after end of document Error at line 7

When XML Variable is defined with key Servers and structure
<Servers>
    <Server>
        <Name/>
        <Server_Group/>
        <OS_Version/>
        <OS/>
        <OS_Service_Pack/>
    </Server>
</Servers>







Outcomes