ContributionsMost RecentMost LikesSolutionsRe: xml parsing with groovyregistering the name space was a problem. Thats the reason it was failing. def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context ) def responseHolder = groovyUtils.getXmlHolder( messageExchange.responseContent ) responseHolder.namespaces['ns2']='http://www.xyz.com/schemas/xyz/klm'; responseHolder.namespaces['ns1']='http://www.xyz.com/schemas/xyz/def'; responseHolder.namespaces['ns4']='http://www.xyz.com/schemas/xyz/abc'; responseHolder.namespaces['ns3']='http://www.xyz.com/schemas/xyz/pqr'; once we have the name spaces we should register them before we get the node value of the responseRe: SOAP UI Groovy parsing the Respons..node is always emptyregistering the name space was a problem. Thats the reason it was failing. def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context ) def responseHolder = groovyUtils.getXmlHolder( messageExchange.responseContent ) responseHolder.namespaces['ns2']='http://www.xyz.com/schemas/xyz/klm'; responseHolder.namespaces['ns1']='http://www.xyz.com/schemas/xyz/def'; responseHolder.namespaces['ns4']='http://www.xyz.com/schemas/xyz/abc'; responseHolder.namespaces['ns3']='http://www.xyz.com/schemas/xyz/pqr'; once we have the name spaces we should register them before we get the node value of the responseRe: xml parsing with groovyHi Sumit, I am just doing the xml parsing part in the script assertion out of the response xml obtained. I am doing the same way as you showed here, but getting the order number as empty even I followed the same way of def on = holder1.getNodeValue("//ns:XData/ns:OrderNumber"); //Start parsing of xml_data def groovyUtils = new com.eviware.soapui.support.GroovyUtils(context); def holder1 = groovyUtils.getXmlHolder(xml_data); holder1.namespaces["ns"] = "http://www.xxx.com/xx/yy; //Pull out the field 'OrderNumber' from the nested xml def on = holder1.getNodeValue("//ns:XData/OrderNumber"); log.info("xml_data: " + xml_data); log.info("orderNumber: " + on); Could you please help me with this error?SOAP UI Groovy parsing the Respons..node is always emptyMy objective is to get the response values out of the Response that is obtained from the SOAP UI in the assertion script. def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context ) def responseHolder = groovyUtils.getXmlHolder( messageExchange.responseContent ) declare namespace ns4='http://www.xyz.com/schemas/xyz/abc'; declare namespace ns1='http://www.xyz.com/schemas/xyz/def'; declare namespace ns2='http://www.xyz.com/schemas/xyz/klm'; declare namespace ns3='http://www.xyz.com/schemas/xyz/pqr'; def appearanceColorResponse = responseHolder.getNodeValue("//ns2:message[1]/ns2:message-body[1]/ns1:person-detail[1]/ns3:person[1]/ns4:entity[1]/ns4:appeareance-color[1]); I am getting the appearanceColorResponse as null. Could some one please let me know If I am doing wrong? (or) Is there a better way of reading the response with name spaces present?