commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maksimenko Alexander" <maksime...@bird.cris.net>
Subject Re: [betwixt] How to get mixed-content of element?
Date Thu, 20 Mar 2003 14:13:23 GMT

> hi
>
> i've added this functionality (it took a bit more work than i'd thought
> but it's worth it). if you check out CVS HEAD and build the latest version
> or wait until a new nightly build then you give it a go. note that the
> element name (in the betwixt file) is text. there should be some
> documentation about this feature on the web site. (but i'll take another
> look and maybe improve it tommorrow.)
>
> if you try it, please let me know how you get on.
>
> - robert
>

thanks. everything works very good. But I have some questions concerning the
code you've done
1)What for do you use the attribute "type" ?
2)I think that the body should be wrapped by <![CDATA[ ... ]]> Otherwise we
will get invalid xml file if the bean property has string value like "P&G
company"


> On Tuesday, March 18, 2003, at 04:29 PM, Maksimenko Alexander wrote:
>
> >> again, i'm afraid that there's no way to do this at the moment.
> >>
> >> i don't really see how it could be automatically supported by
> >> introspection - but it would be reasonable to add a new element type to
> >> the .betwixt xml. we'd have something like <content property='foo'/>
> >> which
> >> would convert whatever property foo returns to a string and then add it
> >> to
> >> the xml in the given position.
> >>
> >> how would this sound?
> >>
> >
> > yes it's very logically.
> > So all xml entities (elements,attributes,element body) can be deternined
> > in
> > the betwixt files





Mime
View raw message