kirupaForum
>
Flash
>
ActionScript 3
> how to assert whether a node exist in some XML?
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())
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.