This was a bad solution for what I was attempting.
A better solution was to decode to string the file I wanted to parse and use find() string methods to get indexes and then substrings to pull the relevant attributes from the DOM.
Then I use the Rich Text Viewer to view the data as HTML.