type(ikePanProfiles)
<class 'xml.etree.ElementTree.Element'>
etree.tostring(ikePanProfiles)
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "src/lxml/etree.pyx", line 3367, in lxml.etree.tostring
(src/lxml/etree.c:82622)
TypeError: Type 'Element' cannot be serialized.
Run Code Online (Sandbox Code Playgroud)
我正在访问一个以“xml.etree.ElementTree.Element”对象类型进行响应的 API,所以我不确定如何隐藏此字符串?