Thanks for the info,

So is there a way to define CDATA in my xml and have castor unmarshal it
into an object?

-M

> -----Original Message-----
> From: Keith Visco [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 30, 2001 5:18 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [castor-dev] Trouble with schema
>
>
>
> Michael Young wrote:
> >
> > Ok, I figured it out.
> >
> >  <element name='square'>
> >   <complexType mixed='true'>
> >    <attribute name='height' type='string' use='required'/>
> >   </complexType>
> >  </element>
> >
> > Will give me a castor object with a getContent method, which I
> have my fun
> > with.
> >
> > I found a neat perl script at that turns DTDs into schemas, an
> invaluable
> > tool for something like castor.  I don't know much about
> defining schemas,
> > but this tool does -- thank goodness!
> >
> > I highly recommend you check it in or link it from your website.
>
>
> There are many tools which do this. Castor also has it's own, which was
> written by a former Intalio employee, we try to maintain it, but it
> might be a little out of date.
>
> It can be found in : org.exolab.castor.xml.dtd
>
> In any case, you are welcome to use any tool that works for you.
>
> --Keith
>
>
> //////
>
> >
> > Here's where I got it: http://xml.coverpages.org/dtd2xsd-pl.txt
> >
> > You don't have to support it, but if you make it available, you
> don't have
> > to work as hard to support guys like me (which number in the thousands).
> >
> > Thanks everyone!
> > Michael
> >
> > > -----Original Message-----
> > > From: Michael Young [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, October 30, 2001 4:22 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: [castor-dev] Trouble with schema
> > >
> > >
> > > Thanks Ben,
> > >
> > > So what about when I don't want my "any" data to be parsed as
> well formed
> > > XML?  Is it possible to get the data as bytes?
> > >
> > >
> > > -Michael
> > >
> > > > -----Original Message-----
> > > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > > > Sent: Tuesday, October 30, 2001 3:34 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: Re: [castor-dev] Trouble with schema
> > > >
> > > >
> > > >
> > > >
> > > > >The getAnyObject returns a java.lang.Object instance,
> fine.  But what
> > > > object
> > > > >class is castor instantiating and putting my xml data into?
> > > > >
> > > > >Also, getAnyObject returns an array, why is that?  How could
> > > it consider
> > > > >verything between the <square></square> tags as anything
> other than one
> > > > >large blob?
> > > >
> > > > It is an 'AnyNode' class which comes with castor. The array is
> > > > for when you
> > > > have something like <square><p>aoeu</p><p>aoeu</p></square>.
> > > Then each p
> > > > becomes an 'AnyNode' instance.  If you do a toString on
> either instance,
> > > > you'll get back the string <p>aoeu</p>.
> > > >
>
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
>       unsubscribe castor-dev


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to