tmp.setAttributeNS(namespaceuri, qname, value);
if ((namespaceuri == null) || (namespaceuri.equals(""))) tmp.setAttribute(qname, value); else tmp.setAttributeNS(namespaceuri, qname, value);
    public void startElement(String namespace, String localName, String qName,	Attributes attrs )     {	// create new element	Element tmp = (Element)_document.createElementNS(namespace, qName);	int nattrs = attrs.getLength();	for (int i=0; i<nattrs; i++ ) {	    String namespaceuri = attrs.getURI(i);	    String value = attrs.getValue(i);	    String qname = attrs.getQName(i);	    tmp.setAttributeNS(namespaceuri, qname, value);	}	// append this new node onto current stack node	Node last = (Node)_nodeStk.peek();	last.appendChild(tmp);	// push this node onto stack	_nodeStk.push(tmp);    }