def METHOD_NAME(self, data):
    if isinstance(data, bytes):
        self.dom = minidom.METHOD_NAME(BytesIO(data),
                                 parser=ProtectedExpatParser())
    else:
        self.dom = minidom.parseString(data, parser=ProtectedExpatParser())
    return Node(self.dom)