-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
Feature Requestideas for new featuresideas for new features
Milestone
Description
A simplified XML case: https://gist.githubusercontent.com/mgnsk/39ffd7f8e0a24038373a53f76c317d93/raw/0c772312121ce089bc4c14082ae54e8882298d74/freshrss_test.xml
//array/objectitem and./string[@name="title"]title gives only a single entry with the titleMeta title/array/objectitem and./string[@name="title"]title gives an empty feed
Now the same XML but the inner array has a name attribute which is similar to the actual XML I dealt with: https://gist.githubusercontent.com/mgnsk/0aab124cfd3516cb8ccddb8d39d5c5a7/raw/e9fe30a5cdedcc736027353e08b4be994f91beb2/freshrss_test.xml
//array/objectitem and./string[@name="title"]title gives me 4 entries/array/objectitem and./string[@name="title"]title gives empty feed
I was finally able to solve it with
//array[count(@*)=0]/objectitem and./string[@name="title"]title gives correct 2 entriesItem 1andItem 2
but still wondering why just/array/objectcouldn't work.
Originally posted by @mgnsk in #5071 (comment)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Feature Requestideas for new featuresideas for new features