Changeset 10170
- Timestamp:
- 2005-06-24T14:11:00+12:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/plugins/XMLPlug.pm
r9957 r10170 55 55 56 56 57 my($self);57 our ($self); 58 58 sub new { 59 59 my $class = shift (@_); … … 204 204 # we'll just continue quietly 205 205 206 ##print STDERR "**** Error is: $@\n";206 print STDERR "**** Error is: $@\n"; 207 207 208 208 my ($msg) = $@ =~ /Carp::croak\(\'(.*?)\'\)/; … … 220 220 221 221 return 1; # processed the file 222 } 223 224 # the following two methods are for if you want to do the parsing from a 225 # plugin that inherits from this. it seems that you can't call the parse 226 # methods directly. WHY??? 227 sub parse_file { 228 $self = shift (@_); 229 my ($filename) = @_; 230 $self->{'parser'}->parsefile($filename); 231 } 232 233 sub parse_string { 234 $self = shift (@_); 235 my ($xml_string) = @_; 236 $self->{'parser'}->parse($xml_string); 222 237 } 223 238
Note:
See TracChangeset
for help on using the changeset viewer.