[aspectwerkz-dev] [jira] Created: (AW-479) marshalling to a xml file through the Default handler

"sathya (JIRA)" <jira-yCVjj/[email protected]> Tue, 5 Aug 2008 06:22:26 -0500 (CDT)
Newsgroups gmane.comp.java.aspectwerkz.devel
Message-ID <6572741.1217935346954.JavaMail.haus-jira@codehaus01.managed.contegix.com>
marshalling to a xml file through the Default handler
-----------------------------------------------------

                 Key: AW-479
                 URL: http://jira.codehaus.org/browse/AW-479
             Project: AspectWerkz
          Issue Type: Wish
            Reporter: sathya
         Attachments: AxisContentHandler.java, CastorSerializer.java

This is with reference to the example given in the link 

http://issues.apache.org/jira/browse/AXIS-1556?page=history

I am trying to marshall the value object to a xml file.

I added the code in the CastorSerializer class

--------------------------------------------------------------------------------------------------------------------------------------------------------------
public static void main(String args[])
{
Calendar value=new Calendar(); //calendar is the object to be marshalled
Value.setDate("fifth");
Value.setMonth("august");
Value.setYear("twentieth");
new CastorSerializer().serialize(new QName(" "," "),null,value,new SerializationContextImpl(new PrintWriter(new FileOutputStream("/home/value.xml");
}
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
The result that i see is value.xml file is created but no contents are being written into it. Please say me where I went wrong.
I have gone around searching web to find the fault, but I could not spot out. 

Reply as soon as possible friend.....

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email