mymntaufarfjo
New Member
The xml file is like this:\[code\]<?xml version="1.0" ?><?xml-stylesheet type="text/xsl" href="http://stackoverflow.com/questions/14576753/Cistrome.xsl"?><motifs> <motif id="hPDI060"> .......... </motif></motifs>\[/code\]My python code is like this:\[code\] tree = ElementTree.parse(sys.argv[1]) for node in tree.findall('.//motifs'): print("found")\[/code\]However, after I run the codes, the \[code\]found\[/code\] string is not displayed, in other words, \[code\].//motifs\[/code\] doesn't find the right tag.Does anyone have ideas about this? Thanks!