我的代码显示android操作系统的xml。Android命名空间lxml python
我需要显示
<resources xmlns:android="http://schemas.android.com/apk/res/android">
我试图
ET.Element("{http://schemas.android.com/apk/res/android}name")
,但它显示
<ns0:name xmlns:ns0="http://schemas.android.com/apk/res/android">
能有人给我一个片段如何解决呢?
您确定命名空间前缀在这里确实很重要吗?对于大多数XML处理来说,他们不会:在内容中处理QNames几乎是唯一不是这种情况的地方。 –