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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Why is XML so prevalent in describing GUI views?

2 点作者 vuyani超过 8 年前

1 comment

nercht12超过 8 年前
Maybe &#x27;cause of HTML? Depends on what framework you look at. Web tech is everywhere, so you see HTML alot. In some senses, I&#x27;d say it&#x27;s more structured and readable that formats like JSON. e.g. compare:<p>&lt;div id=&quot;parent&quot;&gt;&lt;div id=&quot;child&quot;&gt;Hello World&lt;&#x2F;div&gt;&lt;&#x2F;div&gt;<p>div: { id:&quot;parent&quot;, members: { div: { id:&quot;child&quot;, content:&quot;Hello World&quot; } } }