xmerl_scan {validation, true}

Michael McDaniel <>
Mon Apr 25 08:09:24 CEST 2005


using this DTD...
---------------------
<?xml version="1.0" encoding="UTF-8"?>

<!ENTITY % listings "Rup | Bog | BoR">

<!ATTLIST test
     testListings (%listings;)  #REQUIRED
>
---------------------

results in
()90> xmerl_scan:file("test.xml", [{validation,true}, {doctype_DTD, "foo.dtd"}]).
2775- fatal: {invalid_nmtoken,"%listi"}
** exited: {fatal,{{invalid_nmtoken,"%listi"},"./foo.dtd",7,20}} **


although using this one works...
---------------------
<?xml version="1.0" encoding="UTF-8"?>

<!ATTLIST test
     testListings (Rup | Bog | BoR)  #REQUIRED
>
---------------------


QUESTION: 
1) is something incorrect with the first DTD or is it a bug in xmerl_scan using validation?


thanks,

~Michael



More information about the erlang-questions mailing list