Forum Discussion

Perchishka's avatar
Perchishka
Occasional Contributor
8 years ago
Solved

Groovy loop for parsing - XML Content is not allowed in prolog

Hello! Could you help me please.  I have a JDBC Request and response looks like: <Results> <ResultSet fetchSize="0"> <Row rowNumber="1"> <PS_CONTENT_ONDEMAND.EXTERNAL_CODE>...
  • HKosova's avatar
    8 years ago

    Hi Perchishka,

     

    The error is caused by the quotes around "context.ResponseasXML" - this way it's treated as a literal string instead of an object property. Remove the quotes here.

     

    Also replace println with SoapUI's log.info.


    Also

    parsedXml.Row.each { ...

    should be

    parsedXml.ResultSet.Row.each { ...