PDA

View Full Version : how to assert whether a node exist in some XML?



zhangxiaorui
December 22nd, 2008, 09:56 AM
if (xml.someNonExistedNode) will always be "true", so is there anyway to assert that some node does not exist ?

Thanks!

creatify
December 22nd, 2008, 11:23 AM
look into hasOwnProperty here (http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/XML.html#hasOwnProperty())