public static final int testElementParsing (
            final PrintStream out, final BufferedReader in, final String ... args)
    {
        final String    ans=getval(out, in, "use owner document y/[n]/q");
        if (isQuit(ans))
            return 0;
        Document    owner=null;
        if ((ans != null) && (ans.length() > 0) && ('y' == Character.toLowerCase(ans.charAt(0))))
        {
            try
            {
                owner = DOMUtils.createDefaultDocument();
            }
            catch(ParserConfigurationException e)
            {
                System.err.println(e.getClass().getName() + ": " + e.getMessage());
            }
        }
        final int    nErr=testElementParsing(out, in, owner, args);
        if (owner != null)
        {
            // TODO show resulting document
        }
        return nErr;
    }
public static final int testElementParsing (
            final PrintStream out, final BufferedReader in, final String ... args)
    {
        final String    ans=getval(out, in, "use owner document y/[n]/q");
        if (isQuit(ans))
            return 0;
        Document    owner=null;
        if ((ans != null) && (ans.length() > 0) && ('y' == Character.toLowerCase(ans.charAt(0))))
        {
            try
            {
                owner = DOMUtils.createDefaultDocument();
            }
            catch(ParserConfigurationException e)
            {
                System.err.println(e.getClass().getName() + ": " + e.getMessage());
            }
        }
        final int    nErr=testElementParsing(out, in, owner, args);
        if (owner != null)
        {
           
        }
        return nErr;
    }
public static final int testelementparsing ( final printstream out, final bufferedreader in, final string ... args) { final string ans=getval(out, in, "use owner document y/[n]/q"); if (isquit(ans)) return 0; document owner=null; if ((ans != null) && (ans.length() > 0) && ('y' == character.tolowercase(ans.charat(0)))) { try { owner = domutils.createdefaultdocument(); } catch(parserconfigurationexception e) { system.err.println(e.getclass().getname() + ": " + e.getmessage()); } } final int nerr=testelementparsing(out, in, owner, args); if (owner != null) { } return nerr; }