src/main/java/eu/digitisation/text/Text.java
private void readALTOTextLine(Element line) throws WarningException {
        NodeList strings = line.getElementsByTagName("String");

        for (int nstring = 0; nstring < strings.getLength(); ++nstring) {
            Element string = (Element) strings.item(nstring);
            String text = string.getAttribute("CONTENT");
            add(text);
        }

    }
/**
     * Reads textual content in ALTO XML element of type TextLine
     *
     * @param line of the input ALTO file
     */
Reads textual content in ALTO XML element of type TextLine
@param line of the input ALTO file
Reads textual content in ALTO XML element of type TextLine @param line of the input ALTO file
private void readALTOTextLine(Element line) throws WarningException {
        NodeList strings = line.getElementsByTagName("String");
        for (int nstring = 0; nstring < strings.getLength(); ++nstring) {
            Element string = (Element) strings.item(nstring);
            String text = string.getAttribute("CONTENT");
            add(text);
        }
    }
private void readALTOTextLine ( Element line ) throws WarningException { NodeList strings = line . getElementsByTagName ( "String" ) ; for ( int nstring = 0 ; nstring < strings . getLength ( ) ; ++ nstring ) { Element string = ( Element ) strings . item ( nstring ) ; String text = string . getAttribute ( "CONTENT" ) ; add ( text ) ; } }
Reads textual content in ALTO XML element of type TextLine
 @param line of the input ALTO file
Reads textual content in ALTO XML element of type TextLine @param line of the input ALTO file