# How to assert whether a node exist in some XML?

**URL:** <https://forum.kirupa.com/t/how-to-assert-whether-a-node-exist-in-some-xml/278099>\
**Category:** Uncategorized\
**Created:** [December 22, 2008, 2:56pm UTC](https://forum.kirupa.com/t/how-to-assert-whether-a-node-exist-in-some-xml/278099 "2008-12-22T14:56:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhangxiaorui](https://avatars.discourse-cdn.com/v4/letter/z/e495f1/32.png) [@zhangxiaorui](https://forum.kirupa.com/u/zhangxiaorui)\
**Post date:** [December 22, 2008, 2:56pm UTC](https://forum.kirupa.com/t/how-to-assert-whether-a-node-exist-in-some-xml/278099/1 "2008-12-22T14:56:08Z")

</div>

if (xml.someNonExistedNode) will always be “true”, so is there anyway to assert that some node does not exist ?

Thanks!
