Hello!
I am trying to use the SAX2XMLReader::getSrcOffset() function on my windows 2K machine and I get a runtime exception with the following message:
"Message: An exception occurred! Type:RuntimeException, Message:The current transcoding
service does not support source offset information"
I looked at the mailing list archives and found an email alluding to the fact that the above function is not supported by all transcoders. Here's the link to that thread of messages:
http://marc.theaimsgroup.com/?l=xerces-c-dev&m=101967701624711&w=2
Any pointers as to where I could start to achieve this ? I am assuming I should look closely at Transservice.hpp but I'd rather start with good advice than just jumping into it.
Even if the transcoder you are using does support computing the source offset information, by default this service is disabled, as it is a waste of time if you are not going to use it. If you plan to invoke the getSrcOffset method, be sure to invoke setCalculateSrcOfs(true) before parsing.
I guess we should change the error message to be more precise....
Alberto
Cheers! Deep
_________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus&pgmarket=en-ca&RU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]