Re: [Simple-support] how to process an xml without element or attributes
Brought to you by:
niallg
|
From: Александр (R. Щ. <ir...@gm...> - 2011-03-02 21:43:32
|
Seems like you've missed @Text annotation for field id...
2011/3/3 gato chlr <da...@gm...>
> for example:
>
> <node>321</node>
>
> where 321 is the id of the node. node tag does not have attributes or
> elements. it just has the 'id' value inside.
>
> I tried with :
>
> @Root
> public class Node{
> //don't know how to annotate the id.
> private int id;
> public To(int id){
> this.id=id;
> }
> }
>
> thanks for the help.
>
>
> ------------------------------------------------------------------------------
> Free Software Download: Index, Search & Analyze Logs and other IT data in
> Real-Time with Splunk. Collect, index and harness all the fast moving IT
> data
> generated by your applications, servers and devices whether physical,
> virtual
> or in the cloud. Deliver compliance at lower cost and gain new business
> insights. http://p.sf.net/sfu/splunk-dev2dev
> _______________________________________________
> Simple-support mailing list
> Sim...@li...
> https://lists.sourceforge.net/lists/listinfo/simple-support
>
>
--
Fairly,
Alexander (Ryoka) Shchegolev
|