I have multiple items within my xml code I want to parse. I'm not quite sure of how to do it, any help would be greatly appreciated. Below is a snippet of my xml and python code and what I'm looking to do.
XML
<doc>
<para>
<text> /PARSEME: ABC12345/ /PARSEME: ABC98765/ /PARSEME: FGB87654/
</text>
</parse>
</doc>
Python code
def get_parseme(self, document):
match = self.getNodeContent(document.contents(), 'para', 'text', true)
match2 = re.search(r"PARSEME:\D{3}\d{5}", match, re.M|re.I)
if match2:
return match2.group()