Skip Menu |

This queue is for tickets about the SOAP-Lite CPAN distribution.

Report information
The Basics
Id: 53375
Status: resolved
Priority: 0/
Queue: SOAP-Lite

People
Owner: Nobody in particular
Requestors: redwards [...] salmonella.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: comments after <?xml .. >
If there is a comment with a hyphen in it immediately after the <?xml ... ?> line the parser will report it as junk

For example, this wsdl file:

<?xml version="1.0" encoding="UTF-8"?>
<!-- WSDL for http://seed-viewer.theseed.org/webservices_seed.cgi created by Pod::WSDL version: 0.05 on Mon Jan  4  2010 -->

fails because of the - in seed-viewer, however this one:

<?xml version="1.0" encoding="UTF-8"?>
<!-- WSDL for http://bioseed.mcs.anl.gov/~redwards/FIG/webservices_seed.cgi created by Pod::WSDL version: 0.05 on Mon Jan  4 19:33:01 2010 -->

Does not fail.

Both of these URLs are active in case you want to test the whole XML file.

The former fails with the error message:
junk ' WSDL for http://seed-viewer.theseed.org/webservices_seed.cgi created by Pod::WSDL version: 0.05 on Mon Jan  4 20:41:23 2010 -->
' before XML element

The issue seems to be with appropriately parsing out the comment
Hi, this is an error in XML::Parser::Lite. Fixed in SVN in Revision 390. Thanks for reporting, Martin
Fixed in 0.715 just uploaded to CPAN