Whether the xml.dom.minidom node attribute has this attribute or not, the return is empty

for example:
<material Tags=""/> and <material label="p"/> (there is no Tags attribute at all)
root.getAttribute("Tags")
Both return ‘’
How can I tell the difference between the two? :melting_face:

I found this function, hasAttribute()