I'm trying to find a simple way to see if an attr. name already exists. Right now I'm using a 'for-in' statement with an 'if' statement to compare the node name to the name I want. This seems pretty long and the 'for-in' statement doesn't set me up very nicely if I want to add an 'else' stateement.
something that queries and returns a true or false would be great.
Thanks for any advice,
Nathaniel