Hello,
I am new to XML, after reading all of the hype I have fond disgester is a
actually a practicle way of using XML in a "real world environment". I have
setup a digester object to load select/combo boxes for my application. A
simple XML example follows:
<combos>
<combo name="colour">
<option id="1" value="blue">
<option id="2" value="black">
<option id="3" value="red">
</combo>
<combo name="streets">
<option id="1" value="street">
<option id="2" value="court">
<option id="3" value="road">
</combo>
</combos>
This works fine, i can load all of the objects into a LinkedHashMap but I
want to reuse the combo boxes witout having to clone objects. I would like
to tell the digester to load just one object based on an attribute in a tag.
eg MyComboBoxClass colour = loadCombo("colour");
I have read the article on the ibm website regarding using lucene
(http://www-106.ibm.com/developerworks/library/j-lucene) but I did not ant
to go to the trouble of building idexes on the hard drive.
Thanks,
Aaran
ascc.net.au
2/6 Batman Rd
Eltham Victoria 3095
Australia
www.ascc.net.au
Tel: (03) 9431 6424
Fax: (03) 3 9431 3684
Mob: 0419 227 262
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]