Package dk.brics.xact

Examples of dk.brics.xact.XMLWellformednessException


        if (r.isElement())
          rootelems++;
        else if (r.isText()) {
          Text t = r.asText();
          if (!StringTypes.isWhitespace(t.getString()))
            throw new XMLWellformednessException("non-whitespace text at root", t.getOrigin());
        }
      if (rootelems != 1)
        throw new XMLWellformednessException("wrong number of root elements", x.getOrigin());
    }
    final Stack<Entry> stack = new Stack<Entry>(); // using heap stack, avoids deep recursive calls
    final boolean[] non_first_element = new boolean[1];
    stack.push(new Entry(Entry.Kind.START_NODE, x, null, false, "", false));
        final XML.XHTMLMode xhtmlDoctype = XML.getXHTMLDoctype();
View Full Code Here

TOP

Related Classes of dk.brics.xact.XMLWellformednessException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.