4

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???

1 Answer 1

4

Removing match user node from parent Node would be suitable for this case.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.