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

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

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -