我有一个具有以下xml结构的文件:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<ODX MODEL-VERSION="2.2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="odx.xsd">
<?Some_XML_Declarations 1?>
<?DocumentSaveNo 0?>
<other-elements/>
</ODX>
目前我使用lxml和objectify,有没有办法访问这些XML声明(例如DocumentSaveNo
)?
我已经搜索了lxml API页面但没有找到任何内容。