private void writeAttr(String name,String val) throws IOException {
  writeAttr(name,val,true);
}

private void writeAttr ( String name , String val ) throws IOException { writeAttr ( name , val , true ) ; }
writes the xml attribute name / val . a null val means that the attribute is missing .
