Re: [Boston.pm] XML::XPath

2005-11-03 Thread Alex Brelsfoard
Heh, thanks. Yeah I trimmed my code for display. But thanks for the link, useful. I'm still in prelim for my code, so I'm sure I could do some more checks along the way. Thanks again. --Alex On 11/3/05, Ricker, William <[EMAIL PROTECTED]> wrote: > > Alex, > > > I figured it out. > > Congratulatio

Re: [Boston.pm] XML::XPath

2005-11-03 Thread Ricker, William
Alex, > I figured it out. Congratulations! > just figured I'd send out what I did, in case > anyone else wanted to know: Good to have it in the archives for future reference. Thanks for taking the time to post it back. I'd assume your production code is longer and more paranoid than the frag

Re: [Boston.pm] XML::XPath

2005-11-03 Thread Alex Brelsfoard
I figured it out. just figured I'd send out what I did, in case anyone else wanted to know: use XML::XPath; my $file = "blah.xml"; my $xml = XML::XPath->new(filename => $file); foreach my $item ($xml->find('//DOC')->get_nodelist){ print "\n"; # Item num print "Item #".$item->find('ITEM_NO')->strin