All posters thanks for the input. I finally decided to do only minimal
manipulation in the helper class and build the structure in the XSP file,
like someone else suggested. I'll see where it leads.

No, for now there won't be big structures for now, but it might be in
future.

Bye, Helma

> -----Original Message-----
> From: Justin Fagnani-Bell [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, 18 December 2003 22:48
> To: [EMAIL PROTECTED]
> Subject: Re: How to convert a hierarchical structure to xml in java?
> 
> 
> Helma,
> 
>    I don't know that there's anything you can do about that, 
> unless you 
> want your helper class to also generate SAX events. Even if 
> you created 
> a DOM structure it would have to be traversed to generate a 
> SAX stream.
> 
>    How big is this structure? Is traversing it twice that bad?
> 
> Justin
> 
> 
> On Dec 18, 2003, at 7:43 AM, [EMAIL PROTECTED] wrote:
> 
> > Hi,
> >
> > I'm in the middle of building an XSP page that can retrieve 
> > information from
> > my CORBA-based server. I'm now writing a helper class in 
> Java that can 
> > take
> > the output of the server and transform it into something I 
> can easily 
> > manage
> > in the XSP page.
> > However, I'm stuck. The results are in a hierarchical 
> structure based 
> > on
> > Vector and String or String[]. I want to manipulate this before 
> > returning it
> > to the XSP page, but I don't want to traverse the structure for the
> > manipulation and then once more in the XSP page to build the XML.
> >
> > Can anyone help?
> >
> > Bye, Helma
> >
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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

Reply via email to