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

"sathya (JIRA)" <jira-yCVjj/[email protected]> Tue, 5 Aug 2008 06:48:27 -0500 (CDT)
Newsgroups gmane.comp.java.aspectwerkz.devel
Message-ID <1294579.1217936907027.JavaMail.haus-jira@codehaus01.managed.contegix.com>
    [ http://jira.codehaus.org/browse/AW-479?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=144149#action_144149 ] 

sathya commented on AW-479:
---------------------------

Adding to the post, I tried overridding public void startDocument() and endDocument() methods in AxisContentHandler class. Both these methods are not called while marshalling.

I would like to know when these methods will be called. I have an understanding that these two methods will be called when the xml file is opened for marshalling the object into the file.

But it seems to be wrong. 

Plz correct me...



> 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