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

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -