Subject:pass paramter in java and do a dom search Author:steve marco Date:23 May 2005 01:35 PM
This is my xml file
<dictionary>
<entry word="antonym">
<definition>A word having a meaning opposite to that of another word
</definition>
<synonym>opposite</synonym>
</entry>
</dictionary>
How would i pass a command line argument named
java DictionaryDomSearch nym using unix. So that it searches the dom xml and finds all words attributes that have nym like antonym.
Then if it finds a match with nym it needs to append the xml document and it has to now look like this
<dictionary>
<entry word="antonym" match="nym">
**** match="nym" add it if it finds a matched word
<definition>A word having a meaning opposite to that of another word</definition>
<synonym>opposite</synonym>
</entry>
</dictionary>