Skip to content

Remove XML tag if only matches specific value #4674

Answered by timtebeek
alwinjmjak asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @alwinjmjak ; Thanks for reaching out! RemoveXmlTag takes in an XPath expression as argument. Have you checked to see if you can give it an expression that would match on tag contents? I haven't tried that myself yet, but it's worth exploring. https://stackoverflow.com/a/2637909

Otherwise adding support for such //a[text()='Example'] expressions would be the way forward, and any help towards that on a draft PR with tests would be appreciated.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@alwinjmjak
Comment options

Answer selected by alwinjmjak
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