xmerl - Line Numbers ?? whitespace_was_expected

Bertil Karlsson bertil.karlsson@REDACTED
Fri Feb 17 13:43:57 CET 2006


What I intended to write was that xmerl failed on counting line numbers 
when expanding PE references. This was one major issue causing bad line 
numbers.

/Bertil

Bertil Karlsson wrote:

> Next version os xmerl, which is coming soon, has better accuracy in 
> telling where the error occured. One thing xmerl failed on earlier was 
> expansion of parameter entities.
>
> /Bertil
>
>
> Sanjaya Vitharana wrote:
>
>> Hi ...!!!
>>  
>> vxml_test.vxml
>>  
>> <?xml version="1.0" encoding="UTF-8"?>
>> <vxml xmlns="http://www.w3.org/2001/vxml" version="2.1">
>>  
>> </vxml>
>> ----------------------------------------
>> Just try to parse the above vxml_test.vxml (3 line), with vxml.dtd 
>> from http://www.w3.org/TR/voicexml21/vxml.dtd  as 
>> xmerl_scan:file("vxml_test.vxml",[{validation,true},{doctype_DTD, 
>> "vxml.dtd"}]).
>>  
>> Question:
>> 1.) {error,{whitespace_was_expected}} - what means this ??? I can't 
>> see anythig wrong in line 109 as shown by the xmerl_scan. Also can be 
>> there any errors after W3C pepole publised it ?
>>  
>> 2.) But with commenting "<!ATTLIST choice" (Line 119-126) error was 
>> moved to the {line,165}. That means something wrong/unsupported 
>> within the above lines. Can anyone explane this ???
>>  
>> 3.) Also I think the Line numbers shown incorrectly???
>>
>> Below the complete error I have got
>>  
>> 67> xmerl_scan:file("vxml_test.vxml",[{validation,true},{doctype_DTD, 
>> "vxml.dtd"}]). 3690- fatal: {error,{whitespace_was_expected}}
>> ** exited: {fatal,{{error,{whitespace_was_expected}},
>>                    {file,"./vxml.dtd"},
>>                    {line,109},
>>                    {col,30}}} **
>> 68>
>>  
>>  
>> Thanks in advance
>>  
>> Sanjaya Vitharana
>
>



More information about the erlang-questions mailing list