Hi Vijay,
Vijay B wrote:
> I am using xstream to marshal/unmarshal xml. I have following xml fragment
> for which I would like to store the node 'rawText' contents as a string on
> Form.java bean.
>
> <FormData>
>
> <form id="1">
>
> <rawText>
>
> <h1>All form submitted data goes here</h1>.
> <clob> This can contain more 'xml' like data with more nodes </clob>
>
> </rawText>
>
> </form>
>
> </FormData>
> Form.java
>
> class Form{
> private int id;
> private String rawText;
>
> //getters + setters
>
> }
>
> So in above example, I would like to get all rawText node content be
> populated into rawText field on Form bean. can this be possible with
> xstream?
>
> <h1>All form submitted data goes here</h1>.
> <clob> This can contain more 'xml' like data with more nodes </clob>
The best approach so far has been contributed by Ken Arnold (XSTR-548). It
should work also for your use case.
Cheers,
Jörg
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email