Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get rid of "is_defaulted method no longer works"?

Status
Not open for further replies.

makarandmk

Programmer
Jan 25, 2003
10
US
Hi, While using XML-DOM-Parser's parsefile method, I am getting following errors on my scrren.. how do i get rid of it?

see my code below:

use XML::DOM;
my $dom = new XML::DOM::parser;
my $doc = $dom->parsefile("some file name");

Errors I get:

The is_defaulted method no longer works. Please use the specified_attr method instead. The is_defaulted method will be removed altogether in a future version.
 
Problem would seem to be in XML::DOM::parser, I would report the error to the Author(s).

Before do though, would be a good idea to make sure you have the latest versions of Perl and the modules. Mike

Want to get great answers to your Tek-Tips questions? Have a look at faq219-2884

It's like this; even samurai have teddy bears, and even teddy bears get drunk.
 
Hi Mike,

Thanks for your comments. BTW, I am using perl5.6 version. Is this a latest one? If I use perl5.005, then also I am getting the same errors. Please advise.

regards,
Makarand
 
5.8 is the latest, though I would concentrate on the modules you're using rather than the version of Perl. Mike

Want to get great answers to your Tek-Tips questions? Have a look at faq219-2884

It's like this; even samurai have teddy bears, and even teddy bears get drunk.
 
Hi,

Can I use any other module other than "XML::DOM::parser" to parse XML file through CGI perl script?

My requirement is to parse XML file, extract data and show it in HTML format to the user.

Please advise.

thanks,
Makarand
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top