xsl-list
[Top] [All Lists]

RE: Measure the length of an XML document in bytes

2005-08-04 07:34:20

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/




--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--