How to replace a child node in a XML file?
显示 更早的评论
Hi,
I have the following XML file (assume it's file name is moose.xml):

Is there a way I can take all the content of "ModuleType Name="AlignmentCorrectionHelper" (2nd Node) and replace it with FULLY with the content of "ModuleType Name=AlarmManager" (1st node).
Important to say, that the 1st node , AlarmManager could have several layers depths inside one of it's parameters.Of course I'd like to take it all.
I saw there is a method of replaceChild here:
I'm just not so sure how to use it in my usecase.
THANKS,
Mark
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Fixed-Point Operator Replacement 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!