List of usage examples for org.jsoup.nodes Attributes forEach
default void forEach(Consumer<? super T> action)
From source file:org.dswarm.xmlenhancer.XMLEnhancer.java
private static void enhanceAttributes(final Attributes attributes) { attributes.forEach(attribute -> { final String value = attribute.getValue(); String escapedValue = StringEscapeUtils.escapeXml11(value); attribute.setValue(escapedValue); });//www .jav a2s.co m }