org.dom4j.Visitor Java Examples
The following examples show how to use
org.dom4j.Visitor.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ManifestFileUtils.java From atlas with Apache License 2.0 | 5 votes |
/** * Remove comments from XML * * @param document * @throws IOException * @throws DocumentException */ private static void removeComments(Document document) throws IOException, DocumentException { Visitor visitor = new VisitorSupport() { @Override public void visit(Comment comment) { comment.setText(" "); } }; document.accept(visitor); }
Example #2
Source File: VersionedXmlDoc.java From onedev with MIT License | 4 votes |
public void accept(Visitor visitor) { getWrapped().accept(visitor); }
Example #3
Source File: ElementWrapper.java From cacheonix-core with GNU Lesser General Public License v2.1 | 4 votes |
public void accept(Visitor visitor) { element.accept( visitor ); }
Example #4
Source File: Dom4jProxy.java From cacheonix-core with GNU Lesser General Public License v2.1 | 4 votes |
public void accept(Visitor visitor) { target().accept( visitor ); }