Thanks for ur quick response.. i got the bug This is a run time generated file so i opened file to print some values in it but forgot to close the file so it was taking something at cmd line as input file.we came to know this we just printed file while running it started working properly as that printed file at cmd line was taken as argument..something of that sort if im wrong
Grant McLean <grant mclean.net.nz> wrote: On Wed, 2007-02-21 at 06:28 +0000, vikram veer wrote: > Hi i get the following error > when i try parsing this file. as far as my knowledge the file is > wellformed: > > no element found at line 1, column 0, byte 0 at > D:/Perl/lib/XML/Parser.pm line 187 > >
The first thing that springs to mind is that you might have a blank line before the XML declaration. If your XML has the beginning, then the '<' *must* be the first character in the file.
Having said that, the particular message you're getting is more consistent with XML::Parser encountering a completely empty file. Are you sure your filename is correct and you're calling the right parse method? Or if you're parsing from a string, are you sure the string has XML in it?
Also are you using XML::Parser directly? That would probably not be a good idea. XML::XPath is a good layer on top of XML::Parser but if you can get it on your platform the XML::LibXML is a better bet.
Cheers Grant
Regards Grant
_______________________________________________ Perl-XML mailing list Perl-XML listserv.ActiveState.com To unsubscribe:
http://listserv.ActiveState.com/mailman/mysubs
;
Here’s a new way to find what you're looking for - Yahoo! Answers
|