Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] XML "size"

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Noam Tamim <noamtm AT gmail.com>
  • To: Elliotte Harold <elharo AT metalab.unc.edu>
  • Cc: xom-interest <xom-interest AT lists.ibiblio.org>
  • Subject: Re: [XOM-interest] XML "size"
  • Date: Thu, 12 May 2005 15:47:50 +0300

On 5/12/05, Elliotte Harold <elharo AT metalab.unc.edu> wrote:
>
> > I can think of asking the element to render itself as a string, and
> > measure the size of that, but it sounds like this would not be very
> > efficient performance wise. Is there a way for me to create a new field
> > to the Node() class and traverse the Object model bottom-up to assign
> > the right value to the field?
>
> Short of forking the code, you can't do that.


Why not? It will be a lot of work, but can't you create something like the
Serializer class, that instead of outputing the XML just counts the number
of characters?

Luca: why would you want that in the first place?


-Noam.




Archive powered by MHonArc 2.6.24.

Top of Page