TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

3 点作者 NWoodsman超过 2 年前
I crawled&#x2F;scraped my favorite forum and rounded up 850 XML files of 5-6k lines each.<p>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.<p>Basically I need an alternative means of visualization to convert my xml into something readable.<p>I have a simple structure &lt;Threads&gt;&lt;Thread Author=&quot;&quot; Date=&quot;&quot; Title=&quot;&quot;&gt;&lt;Post Author=&quot;&quot; Date=&quot;&quot;&gt;&lt;Article&gt;&lt;&#x2F;Article&gt;&lt;&#x2F;Post&gt;&lt;&#x2F;Thread&gt;&lt;&#x2F;Threads&gt;<p>where Article is an actual HTML Article tag (so it should parse to HTML already)<p>Any suggestions what to do?

2 条评论

TowerTall超过 2 年前
Use an XML editor like xmlspy or write a console app in your preferred programming language.
评论 #32789513 未加载
compressedgas超过 2 年前
Perhaps use the command line program xsltproc instead of Firefox.