{"version":"1.0","type":"rich","title":"Gist 302c3f0062de516f2d53","description":"This example demonstrates filtering Atom feed entries by category using a StAX parser. It reads an XML file and extracts the text content of `<title>` and `<category>` elements, printing only titles whose category contains “HTML.” The code relies on the `javax.xml.stream` API, specifically `XMLInputFactory`, `XMLEventReader`, and `XMLStreamConstants`, to iterate through events. It handles `START_ELEMENT` cases to capture element text via `parser.getElementText()`, while skipping other event types. The data source is a local file path (`webtec.atom.xml`), and error handling uses a try-catch block that outputs any exception message.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-302c3f0062de516f2d53?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}