[Xml-compile] XML::Compile fails with import url
Mark Overmeer
solutions at overmeer.net
Fri May 7 13:44:36 GMT 2010
* Tapio.Niva at tieto.com (Tapio.Niva at tieto.com) [100507 11:08]:
> I tried to compile & use the following WSDL, but failed :
> subscribe.wsdl:2: parser error : EntityRef: expecting ';'
> location="http://sheridan.sysmgmt.local//nms-sdk-notify/subscribe?wsdl&resource
> ^
> Obviously something goes wrong when XML::Compile tries to parse the import and
> include statements, which refer to an url instead of separate file.
> Any ideas how to solve this ?
The error message is not produced in XML::Compile, but reported by
libxml2. The WSDL file is invalid XML. The URL in "location" is not
escaped correctly: an "&" must be encoded as "&" As used here,
the libxml2 parser expects to read "&resource;", with a missing ";"
It is a very common mistake in XML to forget to encode "&"
--
Regards,
MarkOv
------------------------------------------------------------------------
Mark Overmeer MSc MARKOV Solutions
Mark at Overmeer.net solutions at overmeer.net
http://Mark.Overmeer.net http://solutions.overmeer.net
More information about the Xml-compile
mailing list