Skip to content

How to find an element whose tag name contains colon #2147

Closed Answered by jhy
zjffdu asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, you should use the ns|E selector. That is, replace the : in the element name with |.

E.g.: ac|structured-macro:contains(foo)

See the example on try.jsoup.

Documented here: https://jsoup.org/apidocs/org/jsoup/select/Selector.html

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jhy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants