RE: [xsl] Measure the length of an XML document in bytes

Subject: RE: [xsl] Measure the length of an XML document in bytes
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 4 Aug 2005 15:34:20 +0100
> > Any ideas how to count the length of a document character 
> by character?

In Saxon:

string-length(saxon:serialize(/))

But note that this may not be the same as the size of the original document,
for example the internal DTD subset will have disappeared.

Michael Kay
http://www.saxonica.com/

Current Thread