Hi all,
I am new to struts. My question is do we have to use the Digester class to actually
read any of the XML files? If so how do I actually map an XML file into a class object
(class here represents a model) when the XML file has got multiple elements in them
and is not attribuite oriented . For example
<?xml version="1.0"?>
<user>
<name>vijay</name>
<mail>[EMAIL PROTECTED]</mail>
</user>
Following the strut example I would structure the XML as
<?xml version="1.0"?>
<user name="vijay" mail="[EMAIL PROTECTED]"/>
Since I may have 2 mail accounts and I may represent it in my XML as
<mail>[EMAIL PROTECTED]</mail>
<mail>[EMAIL PROTECTED]</mail>
Is there something that I am missing in the digester class.
If I write my own implementation that maps a XML elemets into java classs's am I
deviating from the Struts Frame work.
Many thanx in advance,
Vijay
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>