Project

General

Profile

Actions

Feature #6079

open

Support JSON or XML output from emlparser

Added by ben leinfelder over 10 years ago. Updated over 10 years ago.

Status:
New
Priority:
Normal
Category:
eml-parser
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

Also available in: Atom PDF