Re: TK Debugger with Xerces-P (OT?)

Robert Arthur <[email protected]>
Newsgroups gmane.text.xml.xerces-p.devel
Message-ID <[email protected]>
Jason E. Stewart wrote:
> Robert Arthur <[email protected]> writes:
> 
> 
>>Hi,
>>
>>I was just wondering if anyone was using the Perl TK debugger ptkdb
>>with Xerces-P?  
> 
> 
> Just curious, what version of Xerces is this?

2.3.0, with XML::Xerces v2.3.0-4, perl 5.6.1.

> What you could do is look in Xerces.pm and if there are any places
> that call error(), change it to XML::Xerces::error() instead - I'm
> having a very wierd problem with the Perl inheritance that I can't
> figure out.

I've done some playing, and with the following changes, it seems to work:

Line 449:
- use XML::Xerces qw( error )
+ use XML::Xerces

Line 486:
- error ($@, __PACKAGE__ . ": Couldn't parse catalog: $CATALOG")
+ XML::Xerces::error ($@, __PACKAGE__ . ": Couldn't parse catalog: 
$CATALOG")


I'm not actually using XML::Xerces::XMLCatalogResolver, which is the 
package I have modified, so I can't be sure that this will still work, 
but for my needs this at least gets past the compilation stage.

Still, why it would compile normally, or with the default debugger, and 
not the TK debugger is way beyond me!  Like I said before, I *imagine* 
it's the fault of ptkdb, but I don't have the courage to tackle that.

Meanwhile, perhaps this will help others in the same position.

Thanks for the help,

Bob.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.