if (element == null) { element = nodeFactory.makeRootElement(name, streamReader.getNamespaceURI()); document.setRootElement(element);
@Override protected Element createHtmlElementSetAsRoot(HtmlAttributes attributes) throws SAXException { try { Element rv = nodeFactory.makeElement("html", "http://www.w3.org/1999/xhtml"); for (int i = 0; i < attributes.getLength(); i++) { rv.addAttribute(nodeFactory.makeAttribute( attributes.getLocalName(i), attributes.getURI(i), attributes.getValue(i), attributes.getType(i) == "ID" ? Attribute.Type.ID : Attribute.Type.CDATA)); } document.setRootElement(rv); return rv; } catch (XMLException e) { fatal(e); throw new RuntimeException("Unreachable"); } }
if (element == null) { element = nodeFactory.makeRootElement(name, streamReader.getNamespaceURI()); document.setRootElement(element);
if (element == null) { element = nodeFactory.makeRootElement(name, streamReader.getNamespaceURI()); document.setRootElement(element);
if (element == null) { element = nodeFactory.makeRootElement(name, streamReader.getNamespaceURI()); document.setRootElement(element);
@Override protected Element createHtmlElementSetAsRoot( HtmlAttributes attributes) throws SAXException { try { Element rv = nodeFactory.makeElement("html", "http://www.w3.org/1999/xhtml"); for (int i = 0; i < attributes.getLength(); i++) { rv.addAttribute(nodeFactory.makeAttribute( attributes.getLocalNameNoBoundsCheck(i), attributes.getURINoBoundsCheck(i), attributes.getValueNoBoundsCheck(i), attributes.getTypeNoBoundsCheck(i) == "ID" ? Attribute.Type.ID : Attribute.Type.CDATA)); } document.setRootElement(rv); return rv; } catch (XMLException e) { fatal(e); throw new RuntimeException("Unreachable"); } }
@Override protected Element createHtmlElementSetAsRoot( HtmlAttributes attributes) throws SAXException { try { Element rv = nodeFactory.makeElement("html", "http://www.w3.org/1999/xhtml"); for (int i = 0; i < attributes.getLength(); i++) { rv.addAttribute(nodeFactory.makeAttribute( attributes.getLocalNameNoBoundsCheck(i), attributes.getURINoBoundsCheck(i), attributes.getValueNoBoundsCheck(i), attributes.getTypeNoBoundsCheck(i) == "ID" ? Attribute.Type.ID : Attribute.Type.CDATA)); } document.setRootElement(rv); return rv; } catch (XMLException e) { fatal(e); throw new RuntimeException("Unreachable"); } }
throw new NullPointerException("Factory failed to create root element."); doc.setRootElement(root); readElementF(src, root, input); nodes = factory.finishMakingElement(root); "Factory returned multiple root elements"); doc.setRootElement((Element) node); hasRootElement = true; } else {
throw new NullPointerException("Factory failed to create root element."); doc.setRootElement(root); readElementF(src, root, input); nodes = factory.finishMakingElement(root); "Factory returned multiple root elements"); doc.setRootElement((Element) node); hasRootElement = true; } else {