Hi James,

Thanks for that. The XMLIntrospector example you give here is 
essentially programmatically what the *.betwixt files do, is that right? 
For my uses, I'd like something fairly generic as I won't to abstract 
between implementations (so the .betwixt is actually a better solution).

What I was hoping was the default introspector might work "smarter" 
depending on how I defined my bean properties. My understanding of of 
the doco was that it had this goal. I'll touch up the test case and send 
that in if that is correct. But maybe I am missing something, or my 
expectations are off :)

Thanks,
Brett

James Strachan wrote:
> Hi Brett
> 
> Maybe customizing the XMLIntrospector used by the BeanReader/BeanWriter
> could help give you XML more like you expect, such as
> 
> XMLIntrospector introspector = new XMLIntrospector();
> introspector .setWrapCollectionsInElement(false);
> introspector.setAttributesForPrimitives(true);
> 
> If that still gives you problems, any chance you could submit a little bit
> of Java code (preferably the JUnit test case you're running) of exactly what
> you're doing so it'd be easier to correct/fix? It'd be handy if created a
> 'Results' object and using the same introspector, showed how it outputs as
> XML also?
> 
> James
> -------
> http://radio.weblogs.com/0112098/
> 


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to