[xml] Length xmlTextReaderConst... contents?



Hello Group!

When I parse huge (several GB) XML files with xmlTextReader, I use the "xmlTextReaderCont..." family of 
functions to retrieve various text contents, for example:

  xmlTextReaderConstName()
  xmlTextReaderConstValue()

From the documentation I conclude that the "const" functions grant fastest access because no data has to be 
copied.

While this works fairly fast, I still need to strlen() through some million pieces of #0-terminated text to 
determine their lengths.

So here is my question:

Is the text length already stored within xmlTextReader so I can just call a function to retrieve it quickly? 
I am sure that this would be considerably faster than calling strlen() on gigabytes of text.

Many thanks,

Ralf




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]