[xml] Getting the offset of a node in the stream

  I'm using an xmlTextReader (and the xmlTextReaderNext() function) to
read an XML file, and once I find a specific element I must be able to
tell at what byte offset in the file this element is found.
The API has a xmlTextReaderByteConsumed() function that according to
the docs seems to do what I want, but in fact it doesn't, because it
returns the offset of a few elements ahead.

Is there a method to obtain the exact offset of an element?



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