Skip to content

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

2 pointsvuyani1 comment
On HN

Comments

Maybe 'cause of HTML? Depends on what framework you look at. Web tech is everywhere, so you see HTML alot. In some senses, I'd say it's more structured and readable that formats like JSON. e.g. compare:

<div id="parent"><div id="child">Hello World</div></div>

div: { id:"parent", members: { div: { id:"child", content:"Hello World" } } }

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.