shubhimu
7 years agoContributor
How to remove namespace after parsing XML using XMLSlurper
Hi,
I am using XMl Slurper for parsing XML response and using below code for the same
def xml= new XmlSlurper().parseText(response) ---response is the value coming from the response
def updatedXml= XmlUtil.serialize(xml)--have used this to show data in XML
if i am printing log.info updatedXml then it shows namespace also but i dont want namespace after parsing.
Can any one help me here?
Thanks,
Himanshu