If i do:
myXML = new XML(<pets><dogs><fido color="red"/><spike/></dogs></pets>);
now check if i want to check if fido have a color attribute, what should i do?
If i do alert(myXML.dogs.spike.color) it will just give me an empty string (XML), rather than fail
Thanks for taking the time to answer.
Actually i did read up on E4X, after your last post regarding it.
However there are basic things i dont understand, if i do (example from the E4X site):
The script fails (run in Indesign)
From the earlier post: The missing @ was a typo
I do know how to acces the attribute, i just dont know how to see the difference in an empty attribute and in a non existant, since
will always return "" or a value.
Hope you can help