XPath check for non-existing node -


im having bit of trouble finding right xpath syntax check if particular node in xml exists. i'm allowed use xpath (so no xsl or else that, has pure xpath expression syntax).

i have xml , has node filename doesn't exist in every case. when filename isn't specified, livecycle proces use different route fill in filename. how check if filename node exists?

you can use count function - passing in path of nodes checking.

if not exist, value of count 0:

count(//filename) = 0 

Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -