public static void appendChildrenWithTwoAttributesFromList(final Document doc,final Element parentElement,final List<String> list,final String childName,final String attrOneKey,final String attrTwoKey,final String attrTwoFixValue){
  for (  final String attrOneValue : list) {
    final Element newChild=doc.createElement(childName);
    newChild.setAttribute(attrOneKey,attrOneValue);
    newChild.setAttribute(attrTwoKey,attrTwoFixValue);
    parentElement.appendChild(newChild);
  }
}

public static void appendChildrenWithTwoAttributesFromList ( final Document doc , final Element parentElement , final List < String > list , final String childName , final String attrOneKey , final String attrTwoKey , final String attrTwoFixValue ) { for ( final String attrOneValue : list ) { final Element newChild = doc . createElement ( childName ) ; newChild . setAttribute ( attrOneKey , attrOneValue ) ; newChild . setAttribute ( attrTwoKey , attrTwoFixValue ) ; parentElement . appendChild ( newChild ) ; } }
appends new elements to parentelement from list having two attributes . attribute 1 is coming from the provided list attribute 2 has a fix value for all new elements
