Re: Perl + XML
by Georg Rehm other posts by this author
Sep 20 2005 3:02AM messages near this date
view in the new Beta List Site
Re: Perl + XML
|
XML to SOAP::Data
& XSLT > 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.
Should this be impossible, you could try to pretend that your "XML"
file is an SGML file: Write a simple DTD that allows you to omit
specific start and/or end tags within the file. With a little bit
of luck (this process depends on the errors contained in your broken
XML file, of course), you should be able to normalize the file with
SP, OpenSP or some other SGML parser. The normalized output is, more
or less, what you want.
Hope that helps.
Kind regards,
Georg
--
http://georg-re.hm
_______________________________________________
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
|