xmldocument - Groovy : How to read xml tag names having full colon -


i have xml tag <com:id>33638</com:id> want read value 33638 tag, have parsed xml string , stored string variable cant read value using

string id  = 'com:id'.text(); 

this works fine:

def t = "<com:id>33638</com:id>" def xml = new xmlparser(false, false).parsetext(t) println xml.text() 

Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -