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
Post a Comment