querySelector, wildcard element match?

Is there a way to do a wildcard element name match using querySelector or querySelectorAll?

The XML document I’m trying to parse is basically a flat list of properties

  • I need to find elements that have certain strings in their names.
  • I see support for wildcards in attribute queries but not for the elements themselves.

Any solution except going back to using the apparently deprecated XPath (IE9 dropped it) is acceptable.

6 Answers
6

Leave a Comment