keith,

I just had a quick look on the tutorial and from the
tutorial I came to know
that , FieldHandlers is meant for unsupported
datatypes and collections.
also, arraylist is supported by castor and i worked on
that with few
examples.

Or I should use FieldHandlers for this type of xml.

How can i use the FieldHandler, as for student node
itself or only for the
element.

- venkatesh babu


----- Original Message ----- 
From: "Keith Visco" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, May 05, 2005 7:46 AM
Subject: Re: [castor-user] [XML] one doubt - help


> You'll need to create a custom FieldHandler for this
to parse the
> contents of your text value. Take a look at the
website for a simple
> tuturial on FieldHanders.
>
> --Keith
>
> venkatesh babu wrote:
> > Hi,
> >
> > I have one doubt,
> >
> > Will castor be able to extract datas from these
type xml
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <students>
> > <student name="babu"
major="computer">maths,physics,electornics</student>
> > <student name="manuel"
major="chemistry">maths,physics</student>
> > </students>
> >
> > if able to extract means, how we have to give
mappings considering there
> > are prefined java objects already like the
following classes
> >
> > ex.
> >     class Students {
> >         ArrayList _students  = new ArrayList();
> >         ......
> >    }
> >
> >    class Student {
> >         String name = new String();
> >         String major = new String();
> >         String otherpapers = new String();
> >         ......
> >   }
> >
> >
> > Thanks,
> > Venkatesh
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam
protection around
> > http://mail.yahoo.com
> >
>
>



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Reply via email to