I am able to read an XML file, search for element by tag name, make my changes, but when I use xmlwrite my format changes. For example, all of the skipped lines are removed and the order of the tag names are flipped. For example, after a certain tag name, Number = "1" Name = "R", it will show Name = "R" Number = "1". Does anyone know how maintain the format of an XML file after changing some of the information in it?
MATLAB: Maintaining format with xmlwrite
xmlwrite
Best Answer