Ignoring your typo in the XML declaration :) - If all you want to do is get that value and this is the entirety of your document then you probably want to go with XML::Simple :
This is of course is reading from DATA - you will replace the <DATA> with a variable containing your XML document.#!/usr/bin/perl -w use XML::Simple; use strict; local $/; my $data = XMLin(<DATA>); print $data->{FILE_SIZE}; __DATA__ <?xml version="1.0"?> <Document_Confirmation> <FILE_NAME>ack_mr00000001.xml</FILE_NAME> <DATE_RECEIVED>11/27/2001</DATE_RECEIVED> <FILE_SIZE>2022</FILE_SIZE> </Document_Confirmation>
/J\
In reply to Re: XML parsing
by gellyfish
in thread XML parsing
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |