How to restrict who may read my entries?
Compilation error for XML::XPath::PerlSAX
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What can I do?
• What to Read?
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Зарегистрируйся!

QAIX > Perl web-programming > Compilation error for XML::XPath::PerlSAX­ 19 May 2004 08:16:01

  Recent blog posts: 
  They have birthday today: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Moderators:

Compilation error for XML::XPath::PerlSAX

Aleksandar Jelenak 19 May 2004 08:16:01
 Hello!

I want to define XML::Handler::YAWri­ter as the SAX parser to be used by
XML::XPath. However, the compilation of the XML::XPath::PerlSAX­ module
fails with the following error:

'Bareword "node_parent" not allowed while "strict subs" in use at
/usr/lib/perl5/site­_perl/5.8.0/XML/XPat­h/PerlSAX.pm line 54.'

This error is too basic, so am wondering if I've missed something
obvious. I have tried this module with both ActiveState's Perl 5.8.3 and
Perl 5.8 on Linux. I am using the latest XML::XPath module available on
CPAN.

-Aleksandar

___________________­____________________­________
Perl-XML mailing list
Perl-XML@listserv.A­ctiveState.com
To unsubscribe: http://listserv.Act­iveState.com/mailman­/mysubs

Add comment
Duncan Cameron 19 May 2004 08:16:01 permanent link ]
 On 19-05-2004 at 02:08:03 Aleksandar Jelenak <jelenak@netlinkplu­s.net> wrote:
Hello!>
I want to define XML::Handler::YAWri­ter as the SAX parser to be used by>XML::XPath. However, the compilation of the XML::XPath::PerlSAX­ module>fails with the following error:>
'Bareword "node_parent" not allowed while "strict subs" in use at>/usr/lib/perl5/s­ite_perl/5.8.0/XML/X­Path/PerlSAX.pm line 54.'>
This error is too basic, so am wondering if I've missed something>obvious. I have tried this module with both ActiveState's Perl 5.8.3 and>Perl 5.8 on Linux. I am using the latest XML::XPath module available on>CPAN.>
I think that the XML::XPath::PerlSAX­ module is broken, the way to generate SAX events from an XML::XPath node is through the to_sax() method.
Note that a patch to XML/XPath/Node.pm is required to use the to_sax() method.
Line 506 needs to be bracketed by start_document() and end_document() calls.

$doch->start_docume­nt;
$self->_to_sax ($doch, $dtdh, $enth);
$doch->end_document­;

But all this is pretty dated now, you probably want to be looking at using LibXML with SAX2.

Regards
Duncan Cameron



___________________­____________________­________
Perl-XML mailing list
Perl-XML@listserv.A­ctiveState.com
To unsubscribe: http://listserv.Act­iveState.com/mailman­/mysubs

Add comment
 

Add new comment

As:
Login:  Password:  
 
 
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или УК РФ.


QAIX > Perl web-programming > Compilation error for XML::XPath::PerlSAX­ 19 May 2004 08:16:01

see also:
SQL error
Multiway associations
Re: pgAdmin3 doesn't work after…
пройди тесты:
Do you know women?
see also:
My Jesus
Love
All about my christ

  Copyright © 2001—2008 QAIX
Idea: Miсhael Monashev
Помощь и задать вопросы можно в сообществе support.qaix.com.
Сообщения об ошибках оставляем в сообществе bugs.qaix.com.
Предложения и комментарии пишем в сообществе suggest.qaix.com.
Информация для родителей.
Write us at:
If you would like to report an abuse of our service, such as a spam message, please .