@Override protected void appendComment(Element parent, String comment) throws SAXException { try { parent.appendChild(nodeFactory.makeComment(comment)); } catch (XMLException e) { fatal(e); } }
@Override protected void appendComment(Element parent, String comment) throws SAXException { try { parent.appendChild(nodeFactory.makeComment(comment)); } catch (XMLException e) { fatal(e); } }
@Override protected void appendComment(Element parent, String comment) throws SAXException { try { parent.appendChild(nodeFactory.makeComment(comment)); } catch (XMLException e) { fatal(e); } }
@Override protected void appendCommentToDocument(String comment) throws SAXException { try { Element root = document.getRootElement(); if ("http://www.xom.nu/fakeRoot".equals(root.getNamespaceURI())) { document.insertChild(nodeFactory.makeComment(comment), document.indexOf(root)); } else { document.appendChild(nodeFactory.makeComment(comment)); } } catch (XMLException e) { fatal(e); } }
@Override protected void appendCommentToDocument(String comment) throws SAXException { try { Element root = document.getRootElement(); if ("http://www.xom.nu/fakeRoot".equals(root.getNamespaceURI())) { document.insertChild(nodeFactory.makeComment(comment), document.indexOf(root)); } else { document.appendChild(nodeFactory.makeComment(comment)); } } catch (XMLException e) { fatal(e); } }
@Override protected void appendCommentToDocument(String comment) throws SAXException { try { Element root = document.getRootElement(); if ("http://www.xom.nu/fakeRoot".equals(root.getNamespaceURI())) { document.insertChild(nodeFactory.makeComment(comment), document.indexOf(root)); } else { document.appendChild(nodeFactory.makeComment(comment)); } } catch (XMLException e) { fatal(e); } }