fragments[fid]['content'].append(start.tail)
elif start is not None and start.tag == 'motyw':
fid = start.attrib['id'][1:]
fragments[fid]['content'].append(start.tail)
elif start is not None and start.tag == 'motyw':
fid = start.attrib['id'][1:]
fragments[fid]['content'].append(start.tail)
elif start is not None and start.tag == 'end':
fid = start.attrib['id'][1:]
if fid not in fragments:
continue # a broken <end> node, skip it
frag = fragments[fid]
fragments[fid]['content'].append(start.tail)
elif start is not None and start.tag == 'end':
fid = start.attrib['id'][1:]
if fid not in fragments:
continue # a broken <end> node, skip it
frag = fragments[fid]