Hi
This is a chunk of the xml file (say it's called "FILENAME.xml) I'm working on:
<ListOfConstants>
<Constant key="Parameter_01" name="k18" value="0.1">
</ListOfConstants>
I know how to read in FILENAME.xml into MATLAB and calling 'ListOfConstants' by doing:
xDoc = xmlread('FILENAME.xml);
A = xDoc.getElementsByTagName('ListOfConstants');
Up to here I'm a bit stuck as to how I can continue with this code to get MATLAB to print out ' name="k18" ' (as a check that the correct childnode has been identified), let ' value="0.1" ' be modified to ' value="2" ', and finally rewrite the value back into the xml file.
I would appreciate if someone can help me with getting this up and running.
Cheers,
Jenny
|
|
0
|
|
|
|
Reply
|
Jie
|
4/15/2010 2:41:11 PM |
|