ONIX Viewer
Readable ONIX XML in your browser: a collapsible tree, product summaries, EDItEUR code-list labels inline, and automatic validation.
Add to Chrome
Add to Firefox
Safari: coming soon
Manual installation Source on GitHub
What it does
Open any ONIX file in your browser, from a URL or from disk, and instead of a wall of tags you get a syntax-highlighted tree you can fold, search and copy from. The extension only activates on documents that are actually ONIX. Other XML is left to the browser.
- Code-list labels. Every value from the bundled EDItEUR lists gets its label beside it, and a click opens the whole list with a link to EDItEUR's definition page. All 165 lists are bundled, so it works offline.
- Product summaries. A folded
<Product>reads ISBN · form · title, so a feed with thousands of products stays scannable. - Validation. Every file is checked against the ONIX 3.0 or 3.1 content model as it loads: missing, misplaced or unknown elements, codes outside their list, deprecated codes and elements with EDItEUR's advised replacement, datatype violations, uniqueness rules and ISBN and GTIN check digits. Each finding is pinned to its row, and the toolbar count opens a list you can jump from.
- Both dialects. View a short-tag file under reference names or the reverse with one switch. Copying follows what you see.
- Supports ONIX 2.1, 3.0 and 3.1, reference and short tags, and the ONIX Acknowledgement message.
Try it
With the extension installed, open one of these sample files:
- A valid ONIX 3.1 message that uses every block
- An ONIX 3.1 message with short tags
- An ONIX 3.1 message that breaks as many schema rules as possible
- An ONIX 3.0 message with the constructs that change when converted to 3.1
More are listed on the ONIX sample files page.
Installation
ONIX Viewer is available for Chrome and Firefox. A version for Safari is coming soon.
Chrome, from the Chrome Web Store
The preferred way. Open ONIX Viewer in the Chrome Web Store and click Add to Chrome. Chrome keeps it up to date from then on.
ONIX Viewer needs Chrome 119 or later.
Chrome, manually
If you would rather not use the store, or want a specific version:
- Download
onix-viewer-<version>.zipfrom the releases page on GitHub. - Unzip it somewhere permanent. Chrome loads the extension from that folder, so do not delete or move it afterwards.
- Open
chrome://extensionsand turn on Developer mode in the top right. - Click Load unpacked and pick the unzipped folder.
Chrome shows a developer-mode notice on restart for extensions loaded this way, and updates are manual: replace the folder's contents with the new release and press the reload arrow on the extension's card.
Chrome, local files
Either way, to open .xml files from disk, enable Allow access to file URLs under the extension's Details in chrome://extensions.
Firefox, from Firefox Add-ons
Open ONIX Viewer on addons.mozilla.org and click Add to Firefox. Firefox keeps it up to date from then on, and asks nothing further: local .xml files open without a setting.
ONIX Viewer needs Firefox 140 or later.
Safari
Coming soon, through the Mac App Store. Installation instructions will be added here when it is released.
Keyboard shortcuts
- / search, Enter and Shift+Enter step through matches, Esc closes
- e expand one level, c collapse one level
- t switch between reference names and short tags
- v open the findings list
- w toggle soft wrap
Privacy
ONIX Viewer collects no data. It declares no permissions and no host permissions, has no background process, and makes exactly one network request: a same-origin re-fetch of the page you are already viewing, to read its XML source. Nothing is stored, sent anywhere, or shared with anyone. The privacy policy says this in full, and the threat model and how to verify it are in SECURITY.md.