Forum Discussion
Astr0x
16 years agoOccasional Contributor
Hi Mc Donald,
I was using JDBC request to get set of records values. Thereafter, I used the groovy script steps so as to capture the records value.
For example in the groovy script:
I got the value of employee name using the below method:
def responseAsXML = context.expand( '${jdbc_properties#ResponseAsXML#//Results[1]/Resultset[1]/Row[1]/EMPLOYEENAME[1]}' )
However, when I wanted to do a println responseAsXML, it return me an error:
org.apache.xmlbeans.XmlException: error: Unexpected end of file after null
Would like to check if I can parse the responseAsXML to String or how do I resolve this error?
Please advise.
Thanks.
I was using JDBC request to get set of records values. Thereafter, I used the groovy script steps so as to capture the records value.
For example in the groovy script:
I got the value of employee name using the below method:
def responseAsXML = context.expand( '${jdbc_properties#ResponseAsXML#//Results[1]/Resultset[1]/Row[1]/EMPLOYEENAME[1]}' )
However, when I wanted to do a println responseAsXML, it return me an error:
org.apache.xmlbeans.XmlException: error: Unexpected end of file after null
Would like to check if I can parse the responseAsXML to String or how do I resolve this error?
Please advise.
Thanks.