public static void copyAttributes ( Map < String , String > source , Element dest ) { for ( Entry < String , String > entry : source . entrySet ( ) ) { dest . setAttribute ( entry . getKey ( ) , entry . getValue ( ) ) ; } }
Copy attributes from a map to a DOM node .