You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How can I find out that attributes bar and ns:bar both exist?
The Node API offers get_attributes which returns a HashMap with all attributes, but this loses namespace information and I only get bar once.
I can access individual attributes by namespace using get_attribute_ns, but I have no way to find out which attributes exist in the first place. I would expect something like get_attributes_ns which returns a vec of Node (of type AttributeNode, like what is returned by get_attribute_node) in order to find this out. Or alternatively a get_attribute_names_ns which gives a vec of attribute name, attribute namespace tuples.
Am I missing something or this is something the API doesn't implement yet?
The text was updated successfully, but these errors were encountered:
Consider this:
How can I find out that attributes
bar
andns:bar
both exist?The
Node
API offersget_attributes
which returns aHashMap
with all attributes, but this loses namespace information and I only getbar
once.I can access individual attributes by namespace using
get_attribute_ns
, but I have no way to find out which attributes exist in the first place. I would expect something likeget_attributes_ns
which returns a vec ofNode
(of typeAttributeNode
, like what is returned byget_attribute_node
) in order to find this out. Or alternatively aget_attribute_names_ns
which gives a vec of attribute name, attribute namespace tuples.Am I missing something or this is something the API doesn't implement yet?
The text was updated successfully, but these errors were encountered: