先程の質問と似ているがxmlファイルのデータの抽出

<passage> <infon key="section_type">ABSTRACT</infon> <infon key="type">abstract</infon> <offset>81</offset> <text>Neurologic complications of COVID-19 infection have been recently described and include dizziness, headache, loss of taste and smell, stroke, and encephalopathy. Brain MRI in these patients have revealed various findings including ischemia, hemorrhage, inflammation, and demyelination. In this article, we report a case of critical illness-associated cerebral microbleeds identified on MRI in a patient with severe COVID-19 infection and discuss the potential etiologies of these neuroimaging findings.</text>  <annotation id="20">
<infon key="identifier">9606</infon>
<infon key="type">Species</infon>
<location offset="262" length="8"/>
<text>patients</text>              
<passage>

試したこと

pythonでxmlファイルのannotationのtextの部分を無視してNeurologicの部分のtextの抽出って可能なのでしょうか?

コメントを投稿

0 コメント