简体   繁体   中英

delete xml node using lxml

admin . . . . admin

this my xml file. when i user clear()or del method it will clear all the child and a blank node is creating

<user/>

How can i avoid creating this blank node

it will make problem when i use findall() and try to access any of its child

can anyone provide me a piece of code to del the node fully???

从父节点中删除匹配用户节点将适用于这种情况。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM