Skip to content

Improve find method#6

Open
valentindusollier wants to merge 1 commit into
pladaria:masterfrom
valentindusollier:master
Open

Improve find method#6
valentindusollier wants to merge 1 commit into
pladaria:masterfrom
valentindusollier:master

Conversation

@valentindusollier

Copy link
Copy Markdown

Hi,

Thank you for your library 😉

In one of my projects, I had to find nodes by their name and some of their attributes. So I implemented it:

xmlQuery(ast).find('body', {'type': 'text'}); // xmlQuery containing all the body elements which has a 'type' attribute of value 'text'

And I think it would be a good feature for this lib.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant