Actions
Feature #6079
openSupport JSON or XML output from emlparser
Status:
New
Priority:
Normal
Assignee:
Category:
eml-parser
Target version:
Start date:
09/06/2013
Due date:
% Done:
0%
Estimated time:
Bugzilla-Id:
Description
The online parser servlet returns HTML, but there has been a request to support alternate output formats for programatic interactions.
Matt's proposed schema
<!ELEMENT response (validation+)> <!ELEMENT validation (message*)> <!ATTLIST validation type (#PCDATA) #REQUIRED> <!ATTLIST validation status (passed | failed) #REQUIRED> <!ELEMENT message (#PCDATA)>
and example:
<response> <validation type="emlparse" status="failed"> <message>Missing key for reference to node "154A12"</message> <message>Missing key for reference to node "26A467"</message> </validation> <validation type="saxparse" status="passed" /> </response>
Actions