Settings

Theme

Ask HN: What do I do with all this XML?

3 points by NWoodsman 3 years ago · 3 comments · 1 min read


I crawled/scraped my favorite forum and rounded up 850 XML files of 5-6k lines each.

I was using XSL transformations in Firefox but it seems to have been disallowed due to a cross origin scripting attack using local files, so now only external resources can be used if http.

Basically I need an alternative means of visualization to convert my xml into something readable.

I have a simple structure <Threads><Thread Author="" Date="" Title=""><Post Author="" Date=""><Article></Article></Post></Thread></Threads>

where Article is an actual HTML Article tag (so it should parse to HTML already)

Any suggestions what to do?

TowerTall 3 years ago

Use an XML editor like xmlspy or write a console app in your preferred programming language.

  • nivertech 3 years ago

    Is there XMLSpy or something similar for Linux/Ubuntu?

    Back in the day I used XMLSpy on Windows for XSD schema design, and liked it a lot.

    I tried to look for a Linux version several years ago, but their website was a mess;(

    Maybe it can work under Wine, or there is a browser-based version?

compressedgas 3 years ago

Perhaps use the command line program xsltproc instead of Firefox.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection