NU IT
Northwestern University Information Technology
MorphAdorner Northwestern
 
MorphAdorner Server Services: Extract text from TEI XML file service

Service name: teitotext
Service description: Extract text from a TEI XML file.
HTTP methods allowed: POST, OPTIONS
POST accepts as input: application/x-www-form-urlencoded
HTTP return codes: 200: service succeeded
400: service failed with an error

Query parameters

    media Result format. Only text allowed.
    teifile TEI input file.
    resultsAsAttachedFile Allowed values are true to send the results as an attached file, and false to send the results as a data stream.

Sample POST form

<form accept-charset="UTF-8" method="post" action="teitotext"
      target="_blank"
      enctype="multipart/form-data" name="teitotext">
<table cellpadding="0" cellspacing="5">
<tr>
<td>
<strong>Adorned TEI XML file:</strong>
</td>
<td>
<input type="file" name="teifile" size="50">
</td>
</tr>
<tr>
<td>&&nbsp;</td>
<td>
<input type="checkbox" name="resultsAsAttachedFile" value="true"
       checked="checked"/>
Send results as attached file
</td>
</tr>
<tr>
<td>
&&nbsp;
</td>
<td>
&&nbsp;
</td>
</tr>
<tr>
<td colspan="2">
<input type="submit" name="extract" value="Extract Text" />
</td>
</tr>
</table>
</form>

Output

The text in the input TEI XML file is extracted and returned. This service works the same way as the ExtractTEIText utility.

Home
 
Announcements and News
 
Documentation
 
Download MorphAdorner
 
Glossary
 
Helpful References
 
Licenses
 
Server
 
Talks
 
Tech Talk