'Apache poi open xml tag search

I'm trying to parse a .docx (Open XML) file using Apache POI on Java. I want to be able to extract tags like these: <w:tag w:val="tag"/> from my document. The problem is that I didn't find any examples of how to do it in the internet. Is it possible to achieve something like this using Apache POI library for java or some another library?

Similiar question but in C# for reference: OpenXML tag search



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source