/** * <b>DOM</b>: Implements {@link * org.w3c.dom.Document#getElementById(String)}. */ public Element getElementById(String id) { return getChildElementById(getDocumentElement(), id); }
/** * <b>DOM</b>: Implements {@link * org.w3c.dom.Document#getElementById(String)}. */ public Element getElementById(String id) { return getChildElementById(getDocumentElement(), id); }
/** * <b>DOM</b>: Implements {@link * org.w3c.dom.Document#getElementById(String)}. */ public Element getElementById(String id) { return getChildElementById(getDocumentElement(), id); }
/** * Checks the validity of a node to be inserted. */ protected void checkChildType(Node n, boolean replace) { short t = n.getNodeType(); switch (t) { case ELEMENT_NODE: case PROCESSING_INSTRUCTION_NODE: case COMMENT_NODE: case DOCUMENT_TYPE_NODE: case DOCUMENT_FRAGMENT_NODE: break; default: throw createDOMException(DOMException.HIERARCHY_REQUEST_ERR, "child.type", new Object[] { new Integer(getNodeType()), getNodeName(), new Integer(t), n.getNodeName() }); } if (!replace && (t == ELEMENT_NODE && getDocumentElement() != null) || (t == DOCUMENT_TYPE_NODE && getDoctype() != null)) { throw createDOMException(DOMException.NOT_SUPPORTED_ERR, "document.child.already.exists", new Object[] { new Integer(t), n.getNodeName() }); } }
/** * Checks the validity of a node to be inserted. */ protected void checkChildType(Node n, boolean replace) { short t = n.getNodeType(); switch (t) { case ELEMENT_NODE: case PROCESSING_INSTRUCTION_NODE: case COMMENT_NODE: case DOCUMENT_TYPE_NODE: case DOCUMENT_FRAGMENT_NODE: break; default: throw createDOMException(DOMException.HIERARCHY_REQUEST_ERR, "child.type", new Object[] {(int) getNodeType(), getNodeName(), (int) t, n.getNodeName() }); } if (!replace && (t == ELEMENT_NODE && getDocumentElement() != null) || (t == DOCUMENT_TYPE_NODE && getDoctype() != null)) { throw createDOMException(DOMException.NOT_SUPPORTED_ERR, "document.child.already.exists", new Object[] {(int) t, n.getNodeName() }); } }
/** * Checks the validity of a node to be inserted. */ protected void checkChildType(Node n, boolean replace) { short t = n.getNodeType(); switch (t) { case ELEMENT_NODE: case PROCESSING_INSTRUCTION_NODE: case COMMENT_NODE: case DOCUMENT_TYPE_NODE: case DOCUMENT_FRAGMENT_NODE: break; default: throw createDOMException(DOMException.HIERARCHY_REQUEST_ERR, "child.type", new Object[] {(int) getNodeType(), getNodeName(), (int) t, n.getNodeName() }); } if (!replace && (t == ELEMENT_NODE && getDocumentElement() != null) || (t == DOCUMENT_TYPE_NODE && getDoctype() != null)) { throw createDOMException(DOMException.NOT_SUPPORTED_ERR, "document.child.already.exists", new Object[] {(int) t, n.getNodeName() }); } }
if (an == getDocumentElement()) { throw createDOMException(DOMException.NOT_SUPPORTED_ERR, "rename.document.element",
if (an == getDocumentElement()) { throw createDOMException(DOMException.NOT_SUPPORTED_ERR, "rename.document.element",
if (an == getDocumentElement()) { throw createDOMException(DOMException.NOT_SUPPORTED_ERR, "rename.document.element",
DOMErrorHandler errorHandler = (DOMErrorHandler) domConfig.getParameter (DOMConstants.DOM_ERROR_HANDLER_PARAM); normalizeDocument(getDocumentElement(), cdataSections, comments,
DOMErrorHandler errorHandler = (DOMErrorHandler) domConfig.getParameter (DOMConstants.DOM_ERROR_HANDLER_PARAM); normalizeDocument(getDocumentElement(), cdataSections, comments,
DOMErrorHandler errorHandler = (DOMErrorHandler) domConfig.getParameter (DOMConstants.DOM_ERROR_HANDLER_PARAM); normalizeDocument(getDocumentElement(), cdataSections, comments,