in reply to Re: XML::Parser problems
in thread XML::Parser problems
And the result of the run is this.sub text (@) { # shift @_; if ($text && $_[1]=~/\S/) { # $UNIQ{$com}{$_[1]}++; # $i++; if ($str) { print XML::Parser::Expat::current_line($_[0]),",",XML::Parser::E +xpat::current_column($_[0]),"\n"; print "'$str','$_[1]'\n$com\n";exit; } $str .= $_[1]; } }
$ zcat data/uniprot_sprot.xml.gz | ./get_sp_fields.pl 26745,17 'Involve','d in the presentation of foreign antigens to the immune system' functionAnd the rows from xml lines 26744-26746 are.
<comment type="function">
<text>Involved in the presentation of foreign antigens to the immune system</text>
</comment>
So is there a bug in XML::Parser? Since the text section is split into two calls of subfunction text. Or am I missing something here...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: XML::Parser problems
by mirod (Canon) on Jul 01, 2005 at 08:14 UTC | |
by Hena (Friar) on Jul 01, 2005 at 08:21 UTC |