:) I did figure it out in the end by reading into the code.. however, it WOULD be nice if the documentation suggested that the service would be enabled by calling SAX2XMLReader->setFeature.
Thanks!
Deep



From: Alberto Massari <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: Transcoder
Date: Tue, 03 Feb 2004 19:46:26 +0100
MIME-Version: 1.0
X-Sender: [EMAIL PROTECTED]
Received: from mail.apache.org ([208.185.179.12]) by mc8-f15.hotmail.com with Microsoft SMTPSVC(5.0.2195.6824); Tue, 3 Feb 2004 10:47:33 -0800
Received: (qmail 80430 invoked by uid 500); 3 Feb 2004 18:45:53 -0000
Received: (qmail 80357 invoked from network); 3 Feb 2004 18:45:52 -0000
Received: from unknown (HELO pscgate.progress.com) (192.77.186.1) by daedalus.apache.org with SMTP; 3 Feb 2004 18:45:52 -0000
Received: from elvirus.progress.com (elvirus [192.77.186.100])by pscgate.progress.com (8.12.10/8.12.10/PSC-5.10) with ESMTP id i13IjrXt014754for <[EMAIL PROTECTED]>; Tue, 3 Feb 2004 13:45:54 -0500 (EST)
Received: from progress.com (localhost [127.0.0.1])by elvirus.progress.com (8.10.2/8.10.2/PSC-4.01) with ESMTP id i13Ijpd26934for <[EMAIL PROTECTED]>; Tue, 3 Feb 2004 13:45:51 -0500 (EST)
Received: from naserv.bedford.progress.com (naserv [172.16.5.174])by progress.com (8.11.6/8.11.6) with ESMTP id i13IjoJ04963for <[EMAIL PROTECTED]>; Tue, 3 Feb 2004 13:45:50 -0500 (EST)
Received: from AlbertoMassari.progress.com by naserv.bedford.progress.com (iPlanet Messaging Server 5.2 HotFix 1.21 (built Sep 8 2003)) with ESMTP id <[EMAIL PROTECTED]> for [EMAIL PROTECTED]; Tue, 03 Feb 2004 13:45:51 -0500 (EST)
X-Message-Info: JGTYoYF78jECacmKccUg/lILH6HOoKSh
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
list-help: <mailto:[EMAIL PROTECTED]>
list-unsubscribe: <mailto:[EMAIL PROTECTED]>
list-post: <mailto:[EMAIL PROTECTED]>
Delivered-To: mailing list [EMAIL PROTECTED]
X-Authentication-Warning: elvirus.progress.com: iscan owned process doing -bs
In-reply-to: <[EMAIL PROTECTED]>
Message-id: <[EMAIL PROTECTED]>
X-Mailer: QUALCOMM Windows Eudora Version 6.0.1.1
References: <[EMAIL PROTECTED]>
X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
Return-Path: [EMAIL PROTECTED]
X-OriginalArrivalTime: 03 Feb 2004 18:47:33.0374 (UTC) FILETIME=[2F2161E0:01C3EA86]


At 09.39 30/01/2004 -0500, Navdeep Jaitly wrote:
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]


_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/photos&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]



Reply via email to