nodules / xamel

Fast and cozy way to extract data from XML
MIT License
30 stars 5 forks source link

Search for field #30

Open strarsis opened 6 years ago

strarsis commented 6 years ago

How can I let xamel look up a field in a flexible way?

Instead of

console.log( xml.$('top/node1/node2/node3/dc:title/text()') );

to use a flexible variant

console.log( xml.$('**/dc:title/text()') );

But ** doesn't seem to work as a recursive wildcard.