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

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

javascript - jquery or ashx not working -

inno setup - TLabel or TNewStaticText - change .Font.Style on Focus like Cursor changes with .Cursor -