Skip to Content.
Sympa Menu

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

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Luca Passani <passani AT eunet.no>
  • To: xom-interest <xom-interest AT lists.ibiblio.org>
  • Subject: [XOM-interest] XML "size"
  • Date: Thu, 12 May 2005 12:55:37 +0200

Hi Guys

here is another question which will probably irritate some of you, as usual, but which is relevant to those who need to make XML do something useful. Is there a way to ask an element how big it and all of its children are (in bytes)?
Is there any other metrics for the size of the XML OM?

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?

Thanks

Luca





Archive powered by MHonArc 2.6.24.

Top of Page