How to delete a node from DOM object?

10 views (last 30 days)
Keerthana R O
Keerthana R O on 21 Jul 2021 at 10:18
Answered: Fangjun Jiang on 29 Jul 2021 at 12:50
我有一个xml文件的代码类似于one below
"abc"Val="0"/>
This is read from the xml file and stored in a variable called xDoc. How to make it like below code?
If I try removeChild(), remove() and other similar methods I keep getting error. Please suggest an any other way.

Answers (1)

Fangjun Jiang
Fangjun Jiang on 29 Jul 2021 at 12:50
use delete() and then write the xDoc to an XML file.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!