ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/SCRAM/src/ActiveDoc/SimpleXMLDoc.pm
(Generate patch)

Comparing COMP/SCRAM/src/ActiveDoc/SimpleXMLDoc.pm (file contents):
Revision 1.2 by sashby, Thu Dec 15 16:38:10 2005 UTC vs.
Revision 1.4 by sashby, Thu Jan 19 17:26:29 2006 UTC

# Line 104 | Line 104 | sub parse()
104     if (-f $filename)
105        {
106        $self->parsefile_($filename);
107 +      # Move the data from the container to {data_} key:
108 +      $self->data();
109        }
110     else
111        {
# Line 135 | Line 137 | sub parsefile_()
137   sub data()
138     {
139     my $self=shift;
140 <   return $CONTAINER->data_();
140 >   $self->{data_} = $CONTAINER->data_();
141 > #   return $CONTAINER->data_();
142     }
143  
144   # The default handlers:
# Line 173 | Line 176 | sub open_()
176        # Pass the call to the container class. This will use the AUTOLOAD
177        # function of the class:
178        $CONTAINER->open($element);
179 <      $CONTAINER->$element(\%attributes);
179 >      $CONTAINER->$element($element,\%attributes);
180        }
181     }
182  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines