Help for this page

Select Code to Download


  1. or download this
    my $parser = XML::LibXML->new->parse_file($file);
    my $xml = XML::LibXML::XPathContext->new($parser);
    $xml->registerNs($string,'http://www.garmin.com/xmlschemas/TrainingCen
    +terDatabase/v2');
    
  2. or download this
    for my $key ($xml->findnodes('//x:Lap')) {
     $string = norm_date($key->findvalue("\@StartTime"));
    }
    
  3. or download this
    for my $node ($xml->findnodes('//y:Trackpoint')) {
     $time = $node->findvalue("Time");
     push @X,$time;
    }
    
  4. or download this
    for my $node ($xml->findnodes("//y:Trackpoint")) {
     for my $ch ($node->childNodes) {
    ...
     }
     push @X,$time;
    }