我需要从xml文件中提取字符串,但不使用etree。你知道吗
XML的一小部分:
<key>FDisplayName</key>
<string>Dripo</string>
<key>CFBundleIdentifier</key>
<string>com.getdripo.dripo</string>
<key>DTXcode</key>
假设我想提取com.getdripo.dripo
,我怎么能做到这一点,但没有使用etree?你知道吗
我只知道如何使用etree,但在这种情况下我不能使用它。你知道吗
在网上找不到任何东西,有什么想法吗?你知道吗
使用正则表达式。你知道吗
输出:
注意:强烈建议使用XML解析器。你知道吗
相关问题 更多 >
编程相关推荐