Example usage for org.jsoup.nodes Attributes forEach

List of usage examples for org.jsoup.nodes Attributes forEach

Introduction

In this page you can find the example usage for org.jsoup.nodes Attributes forEach.

Prototype

default void forEach(Consumer<? super T> action) 

Source Link

Document

Performs the given action for each element of the Iterable until all elements have been processed or the action throws an exception.

Usage

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
}