src/main/java/eu/digitisation/text/Text.java
private void readPageTextRegion(Element region) throws IOException, WarningException {
        NodeList nodes = region.getChildNodes();
        for (int n = 0; n < nodes.getLength(); ++n) {
            Node node = nodes.item(n);
            if (node.getNodeName().equals("TextEquiv")) {
                String text = node.getTextContent();
                add(text);
            }
        }
    }
/**
     * Reads textual content in a PAGE element of type TextRegion
     *
     * @param region the TextRegion element
     */
Reads textual content in a PAGE element of type TextRegion
@param region the TextRegion element
Reads textual content in a PAGE element of type TextRegion @param region the TextRegion element
private void readPageTextRegion(Element region) throws IOException, WarningException {
        NodeList nodes = region.getChildNodes();
        for (int n = 0; n < nodes.getLength(); ++n) {
            Node node = nodes.item(n);
            if (node.getNodeName().equals("TextEquiv")) {
                String text = node.getTextContent();
                add(text);
            }
        }
    }
private void readPageTextRegion ( Element region ) throws IOException , WarningException { NodeList nodes = region . getChildNodes ( ) ; for ( int n = 0 ; n < nodes . getLength ( ) ; ++ n ) { Node node = nodes . item ( n ) ; if ( node . getNodeName ( ) . equals ( "TextEquiv" ) ) { String text = node . getTextContent ( ) ; add ( text ) ; } } }
Reads textual content in a PAGE element of type TextRegion
 @param region the TextRegion element
Reads textual content in a PAGE element of type TextRegion @param region the TextRegion element