ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-xml
perl-xml
Re: Perl + XML
by Grant McLean other posts by this author
Sep 20 2005 2:00AM messages near this date
view in the new Beta List Site
Re: Perl + XML | RE: Perl + XML
& XSLT If your file has mismatched tags then it is not XML.  
On Tue, 2005-09-20 at 12:46 +0530, shouvanik.haldar@[...].com wrote:
>  
>  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.

If opening or closing tags are missing then the file is not 'well
formed'.  If it's not well formed then it is not XML.

Your best option is to go back to whoever produced the file and ask them
to fix it.

You may be able to process it with Perl using Regular Expressions, but
the XML::* modules will not be any use to you because the file is not
XML.

Regards
Grant

_______________________________________________
Perl-XML mailing list
Perl-XML@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Shouvanik Haldar
Geir Aalberg
Grant McLean
Mark - BLS CTR Thomas
Georg Rehm
Attila Fülöp
Attila Fülöp
Georg Rehm

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved