Forum Discussion
SmartBear_Suppo
Alumni
16 years agoTry using this:
and replace any occurances of xml2[0] with xml2 which comes after it.
Regards,
Dain
eviware.com
def dataXpath = """
declare namespace soapenv="http://schemas.xmlsoap.org/soap/envelope/";
declare namespace nsiwspref="http://localhost:8080/axis/services/NSIService";
declare namespace ns1="http://www.SDMX.org/resources/SDMXML/schemas/v2_0/message";
//soapenv:Envelope/soapenv:Body/nsiwspref:GetCompactDataResponse/ns1:CompactData
"""
def elementText = xml.selectPath( dataXpath )[0].xmlText( new XmlOptions().setSaveOuter() )
def xml2 = stl.parse( elementText, null, null )
and replace any occurances of xml2[0] with xml2 which comes after it.
Regards,
Dain
eviware.com