【发布时间】:2023-02-22 02:45:33
【问题描述】:
<connect:ConnectorsStatus xmlns:cdesc="exa:com.exalead.mercury.component.config.descriptor" xmlns:connect="exa:com.exalead.mercury.mami.connect.v10" xmlns:bee="exa:exa.bee" xmlns:config="exa:exa.bee.config"> <connect:ConnectorStatus connectorName="quasar_vpminstance" managed="true" connectorServer="java0" status="idle" classId="com.exalead.papi.connectors.jdbc.DatabaseConnector" runtime="java" papiServerType="consolidationServer"> <connect:PerBuildGroupStatus buildGroup="bg_search" activeDocumentsCount="0" totalAdds="0" totalReplaces="0" totalDeletes="0" totalFailedDeletes="0" totalPartialUpdates="0" totalIndexedDocuments="0"/> <connect:PerBuildGroupStatus buildGroup="bg_ndt_search" activeDocumentsCount="0" totalAdds="0" totalReplaces="0" totalDeletes="0" totalFailedDeletes="0" totalPartialUpdates="0" totalIndexedDocuments="0"/> <connect:PerConsolidationServerStatus consolidationServer="cs0" totalAdds="0" totalReplaces="0" totalDeletes="0" totalFailedDeletes="0" totalConsolidatedDocuments="981214"/> <connect:previousScan> <connect:ScanStatus aborted="false" time="1669" startTime="1676960680503" endTime="1676960682172" scannedObjects="86" pushedObjects="86" deletedObjects="0" scanRetries="0"> <connect:specificMeasures/> </connect:ScanStatus> </connect:previousScan>be
我想在我的 python 代码中使用 xpath 函数,所以它也需要命名空间
【问题讨论】:
-
xmlns标签表示xml命名空间 -
“我想在我的 python 代码中使用 xpath 函数”- 好的。实际问题是什么?你的 Python 代码在哪里?请注意,只有
connect名称空间前缀实际用在 XML 文档中。