the Doc.attr method can now take xml attributes as (key,value) pairs