Hi,

I am facing an error while marshalling a Hashtable object into an XML
file. I am using the castor-0.9.5.3.jar

The sample code written is as follows :

Hashtable aa = new Hashtable();
aa.put("Hi", "Hello");
aa.put("Ok", "Very Good");

When I try to marshall this using the Marshaller.marshall command I get
the following error in XML generated.

        Duplicate attribute. Error processing resource
'file:///E:/Sandeep/WorkArea/CastorPOC/Money1Castor.xml'. Line 2,
Position 26 
 

        <hashtable empty="false" empty="false"/>
        -------------------------^

How-ever I can marshall a Vector.

Could u let me know what is the problem. 

Regards,
Sandeep.




MASTEK
"Making a valuable difference"
Mastek in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCO

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Opinions expressed in this e-mail are those of the individual and not that of Mastek 
Limited, unless specifically indicated to that effect. Mastek Limited does not accept 
any responsibility or liability for it. This e-mail and attachments (if any) 
transmitted with it are confidential and/or privileged and solely for the use of the 
intended person or entity to which it is addressed. Any review, re-transmission, 
dissemination or other use of or taking of any action in reliance upon this 
information by persons or entities other than the intended recipient is prohibited. 
This e-mail and its attachments have been scanned for the presence of computer 
viruses. It is the responsibility of the recipient to run the virus check on e-mails 
and attachments before opening them. If you have received this e-mail in error, kindly 
delete this e-mail from all computers.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to