What is the difference between named properties and attributes in libxml-ruby?



What is the difference between



node.property("name")


and



node.attributes["name"]


According to documentation one returns "named property value" and the other "attribute value", but I do not see any difference.


One thing which might play some role are namespaces. Both methods have their setter versions node.property("name")=value and node.attributes["name"]=value and there might be a difference how they treat namespaced attributes.


No comments:

Post a Comment