【发布时间】:2017-06-08 22:05:22
【问题描述】:
如何使用 BeautifulSoup 从 JATS XML 中提取日期(epub)?
<pub-date pub-type="epub">
<day>12</day>
<month>09</month>
<year>2011</year>
</pub-date>
→ 2011-09-12
<pub-date pub-type="collection">
<year>2011</year>
</pub-date>
应该被忽略。
【问题讨论】:
标签: python xml-parsing beautifulsoup