EML: Issueshttps://projects.ecoinformatics.org/ecoinfo/https://projects.ecoinformatics.org/ecoinfo/ecoinfo/favicon.ico?14691340362013-09-06T18:12:45ZEcoinformatics Redmine
Redmine Feature #6079 (New): Support JSON or XML output from emlparserhttps://projects.ecoinformatics.org/ecoinfo/issues/60792013-09-06T18:12:45Zben leinfelderleinfelder@nceas.ucsb.edu
<p>The online parser servlet returns HTML, but there has been a request to support alternate output formats for programatic interactions.</p>
<p>Matt's proposed schema<br /><pre>
<!ELEMENT response (validation+)>
<!ELEMENT validation (message*)>
<!ATTLIST validation type (#PCDATA) #REQUIRED>
<!ATTLIST validation status (passed | failed) #REQUIRED>
<!ELEMENT message (#PCDATA)>
</pre></p>
<p>and example:</p>
<pre>
<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>
</pre>