public static void addAttributes(SerializationHandler handler, int src)
        throws TransformerException
    {

        TransformerImpl transformer =
            (TransformerImpl) handler.getTransformer();
        DTM dtm = transformer.getXPathContext().getDTM(src);

        for (int node = dtm.getFirstAttribute(src);
            DTM.NULL != node;
            node = dtm.getNextAttribute(node))
        {
            addAttribute(handler, node);
        }
    }
public static void addAttributes ( SerializationHandler handler , int src ) throws TransformerException { TransformerImpl transformer = ( TransformerImpl ) handler . getTransformer ( ) ; DTM dtm = transformer . getXPathContext ( ) . getDTM ( src ) ; for ( int node = dtm . getFirstAttribute ( src ) ; DTM . NULL != node ; node = dtm . getNextAttribute ( node ) ) { addAttribute ( handler , node ) ; } }
Copy DOM attributes to the result element.

@param src Source node with the attributes

@throws TransformerException