Perl + XML
by Shouvanik Haldar other posts by this author
Sep 20 2005 12:23AM messages near this date
view in the new Beta List Site
Perl+XML
|
Re: Perl + XML
& XSLT Hi All,
I am facing a grave problem that has made my life miserable...I
have an XML file...that I am attaching below. I am using XML::SAX parser.
I am using it to parse the XML file. If the XML file has one start_tag or
end_tag missing, then an error was thrown...and the rest of the file was
discarded. It is handled now...for example , in the file(attached) named "
bos.xml" , I have handled the error with start tag <LogEntry> </LogEntry>.
meaning if the <LogEntry> start tag is present and </LogEntry> is missing,
then my program is discarding the invalid record and populating the
correct entry into the database. The eval statement has taken care of the
fact. But now, if I try to parse the file where <Date> start tag is
present but </Date> tag is absent, some error is thrown and parsing does
not take place any further ...The main motive is to populate the database
with the right record..this is not taking place...I hope you all
understand my problem. Please help me get rid of this problem.....I am
attaching my program as well as the xml file........Thanks in Advance
Bye and Regards,
Shouvanik Haldar
Assistant Systems Engineer
Tata Consultancy Services Limited
Mailto: shouvanik.haldar@[...].com
Website: http://www.tcs.com
Notice: The information contained in this e-mail message and/or attachments to it may contai
n confidential or privileged information. If you are not the intended recipient, any disse
mination, use, review, distribution, printing or copying of the information contained in thi
s e-mail message and/or attachments to it are strictly prohibited. If you have received th
is communication in error, please notify us by reply e-mail or telephone and immediately and
permanently delete the message and any attachments. Thank you
Attachments:
bos.xml
parser.pl
unknown1
unknown2
unknown3
unknown4
Thread:
Shouvanik Haldar
Geir Aalberg
Grant McLean
Mark - BLS CTR Thomas
Georg Rehm
Attila Fülöp
Attila Fülöp
Georg Rehm
|