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???
Removing match user node from parent Node would be suitable for this case.
精彩评论