The problem seems to be that you are reading the next Instrmt element in a while loop and as a result you skip the parent MktDataFull elements.
If you change the while() to an if() it should fix the main issue.
... if ( $reader->nextElement( 'Instrmt' ) ) { my $Sym = $reader->getAttribute( 'Sym' ); ...
--
John.
In reply to Re: Issue with looping through XML::LibXML::Reader
by jmcnamara
in thread Issue with looping through XML::LibXML::Reader
by ozguy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |