[erlang-questions] [Patch] XMERL Attributes without whitespaces

Eranga Udesh eranga.erl@REDACTED
Mon Sep 15 09:44:18 CEST 2014


Hi,

When parsing XML, xmerl throws error when there are no whitespace character
between 2 attributes. A sample XML is as below. Highlighted areas have
problems.

<vxml xmlns="http://www.w3.org/2001/*vxml"xmlns*:xsi="
http://www.w3.org/2001/XMLSchema-insta*nce"xsi:*schemaLocation="
http://www.w3.org/2001/vxmlhttp://www.w3.org/TR/voicexml20/vxml.xsd"
version="2.0">
<test id="1234">Test XML</test>
</vxml>

However W3C (http://www.w3schools.com/xml/xml_validator.asp) validates
above XLM without any errors. Therefore I guess xmerl better support that.

Attached is a patch to fix that. It could help others too, if that patch is
added to the xmerl package distributed in OTP distribution.

- Eranga
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140915/6380beb6/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xmerl_scan.erl.patch
Type: application/octet-stream
Size: 593 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140915/6380beb6/attachment.obj>


More information about the erlang-questions mailing list