0
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.
を変換しません。このtostringを秘密にする方法?のpython lxmlのxml.etree.ElementTree.Elementの文字列に、私はよく分からないので、私は「xml.etree.ElementTree.Element」のオブジェクトタイプと種類に対応APIにアクセスしてい
xml.etree.ElementTree.tostring(ikePanProfiles)を使用しています。ありがとう。私は要素オブジェクトがAPIから何であるかを制御できません。 –