Changeset 13221


Ignore:
Timestamp:
2006-11-03T15:32:01+13:00 (17 years ago)
Author:
shaoqun
Message:

allow qualified document element names

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/plugins/XMLPlug.pm

    r13192 r13221  
    9090sub get_doctype {
    9191    my $self = shift(@_);
    92     die "The inheriting class must implement this method";
     92    die "$self The inheriting class must implement get_doctype method";
    9393}
    9494
     
    169169    while (defined (my $line = <XMLIN>)) {
    170170        ## find the root element
    171         if ($line =~ /<(\w+)[\s>]/){
     171        if ($line =~ /<([\w:]+)[\s>]/){
    172172        my $root = $1;
    173173        if ($root !~ $doctype){
     
    268268    }
    269269
     270   
    270271    return 1; # processed the file
    271272}
Note: See TracChangeset for help on using the changeset viewer.