A
ahjiang
i have an xml file something like this
<ROOT LANGID="0" LANGPRIORITY="1">
<STRING id=" IMPORTANT !!! Please note it down for your
future reference\n">
<VALUE></VALUE>
<FILENAME
line="46">D:\views\rel8.1_1.0_final\Tally\include\sfntencstr.txt</FILENAME>
</STRING>
</ROOT>
i would like to search the xml file if id = "some input" and if found,
insert a value between the tags <VALUE></VALUE>
i understand jdk.1.5 provide the xpath api..
does anyone has sample of writing the values back to the xml file using
the api?
Appreciate any help
<ROOT LANGID="0" LANGPRIORITY="1">
<STRING id=" IMPORTANT !!! Please note it down for your
future reference\n">
<VALUE></VALUE>
<FILENAME
line="46">D:\views\rel8.1_1.0_final\Tally\include\sfntencstr.txt</FILENAME>
</STRING>
</ROOT>
i would like to search the xml file if id = "some input" and if found,
insert a value between the tags <VALUE></VALUE>
i understand jdk.1.5 provide the xpath api..
does anyone has sample of writing the values back to the xml file using
the api?
Appreciate any help