Reputation: 2329
From my XML I'd like to get the number of chaper
nodes that are nested in video
nodes. Getting the total number of chaper
nodes works with
$(xml).find("chapter").length
What is the syntax to add the video
parent node requirement?
Upvotes: 0
Views: 382
Reputation: 13151
I think you are looking for :
$(xml).find("video > chapter").length
Upvotes: 1