src/main/java/eu/digitisation/text/Text.java
public static void main(String[] args) throws IOException, WarningException, XPathExpressionException, SchemaLocationException {
        if (args.length < 1 | args[0].equals("-h")) {
            System.err.println("usage: Text xmlfile [xpathfile] [xpathfile]");
        } else {
            File xmlfile = new File(args[0]);
            File inclusions = args.length > 1 ? new File(args[1]) : null;
            File exclusions = args.length > 2 ? new File(args[2]) : null;
            XPathFilter filter = (inclusions == null)
                    ? null
                    : new XPathFilter(inclusions, exclusions);

            Text text = new Text(xmlfile, null, filter);
            System.out.println(text);
        }
    }
/**
     * Extract text content (under the filtered elements)
     *
     * @throws java.io.IOException
     */
Extract text content (under the filtered elements)
@throws java.io.IOException
Extract text content ( under the filtered elements ) @throws java . io . IOException
public static void main(String[] args) throws IOException, WarningException, XPathExpressionException, SchemaLocationException {
        if (args.length < 1 | args[0].equals("-h")) {
            System.err.println("usage: Text xmlfile [xpathfile] [xpathfile]");
        } else {
            File xmlfile = new File(args[0]);
            File inclusions = args.length > 1 ? new File(args[1]) : null;
            File exclusions = args.length > 2 ? new File(args[2]) : null;
            XPathFilter filter = (inclusions == null)
                    ? null
                    : new XPathFilter(inclusions, exclusions);
            Text text = new Text(xmlfile, null, filter);
            System.out.println(text);
        }
    }
public static void main ( String [ ] args ) throws IOException , WarningException , XPathExpressionException , SchemaLocationException { if ( args . length < 1 | args [ 0 ] . equals ( "-h" ) ) { System . err . println ( "usage: Text xmlfile [xpathfile] [xpathfile]" ) ; } else { File xmlfile = new File ( args [ 0 ] ) ; File inclusions = args . length > 1 ? new File ( args [ 1 ] ) : null ; File exclusions = args . length > 2 ? new File ( args [ 2 ] ) : null ; XPathFilter filter = ( inclusions == null ) ? null : new XPathFilter ( inclusions , exclusions ) ; Text text = new Text ( xmlfile , null , filter ) ; System . out . println ( text ) ; } }
Extract text content (under the filtered elements)
 @throws java.io.IOException
Extract text content ( under the filtered elements ) @throws java . io . IOException