'Convert a node to text format.
Each rdataset at the node is printed.  Any keyword arguments
to this method are passed on to the rdataset\'s to_text() method.
@param name: the owner name of the rdatasets
@type name: dns.name.Name object
@rtype: string'

def to_text(self, name, **kw):

    s = StringIO()
    for rds in self.rdatasets:
        if (len(rds) > 0):
            s.write(rds.to_text(name, **kw))
            s.write(u'\n')
    return s.getvalue()[:(-1)]
