Changeset 13221
- Timestamp:
- 2006-11-03T15:32:01+13:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/plugins/XMLPlug.pm
r13192 r13221 90 90 sub get_doctype { 91 91 my $self = shift(@_); 92 die " The inheriting class must implement thismethod";92 die "$self The inheriting class must implement get_doctype method"; 93 93 } 94 94 … … 169 169 while (defined (my $line = <XMLIN>)) { 170 170 ## find the root element 171 if ($line =~ /<( \w+)[\s>]/){171 if ($line =~ /<([\w:]+)[\s>]/){ 172 172 my $root = $1; 173 173 if ($root !~ $doctype){ … … 268 268 } 269 269 270 270 271 return 1; # processed the file 271 272 }
Note:
See TracChangeset
for help on using the changeset viewer.