private void writeAttributes(OutputNode node) throws Exception {
  NodeMap<OutputNode> map=node.getAttributes();
  for (  String name : map) {
    OutputNode entry=map.get(name);
    String value=entry.getValue();
    String prefix=entry.getPrefix(verbose);
    writer.writeAttribute(name,value,prefix);
  }
  active.remove(node);
}

private void writeAttributes ( OutputNode node ) throws Exception { NodeMap < OutputNode > map = node . getAttributes ( ) ; for ( String name : map ) { OutputNode entry = map . get ( name ) ; String value = entry . getValue ( ) ; String prefix = entry . getPrefix ( verbose ) ; writer . writeAttribute ( name , value , prefix ) ; } active . remove ( node ) ; }
this is used to write the attributes of the specified node to the output . this will iterate over each node entered on to the node . once written the node is considered inactive .
