News for hackers. Stuff that matters.
Re:The havoc the XML purists wrought by arethuza on Wednesday May 19, 2010 @10:04AM (#1360961)
In what contexts would those two snippets of XML be treated differently? (Not that I am jumping in to defend XML I'm just curious).
Re:The havoc the XML purists wrought by eli on Wednesday May 19, 2010 @10:28AM (#1361057)
If you wrote code to crawl the tree generated from that XML, you'd have text nodes (of whitespace) in one, but not the other.
Re:The havoc the XML purists wrought by arethuza on Wednesday May 19, 2010 @10:49AM (#1361107)
That's what I thought - I don't think I've ever seen an application that would bother with that difference.
Re:The havoc the XML purists wrought by DrJokepu on Wednesday May 19, 2010 @11:08AM (#1361159)
You're using that application right now - XHTML takes the difference into consideration. Consider the <pre /> tag:

  <pre><b>Hello!</b></pre>
is rendered differently from

  <pre>
     <b>Hello!</b>
  </pre>
Re:The havoc the XML purists wrought by arethuza on Wednesday May 19, 2010 @12:07PM (#1361347)
Good point! :-)
Re:The havoc the XML purists wrought by Khaki on Wednesday May 19, 2010 @11:10AM (#1361164)
The difference is a big deal to applications that use XML as a markup language (marking up documents and text), as it was designed to do originally.