Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I was reading this blog by James Bennett regarding HTML vs XHTML . He writes :

I don’t have any need for namespaced content; I’m not displaying any complex mathematical notation here and don’t plan to, and I don’t use SVG for any images. So that’s one advantage of XHTML out the window. I also don’t have any need for XML tools; all the processing I need to do can be handled by HTML-parsing libraries like BeautifulSoup. That’s the other advantage gone.

What does he mean by namespaced content and what advantage does it provide us ?

share|improve this question
2  

1 Answer 1

up vote 5 down vote accepted

XML namespaces allow including XML elements defined in a schema other than that of the main document. Specifically, the article talks about MathML and SVG, which are XML-based formats that can be directly embedded in an XHTML document using namespaces, looking like this:

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:m="http://www.w3.org/1998/Math/MathML">
  XHTML content goes here
  <m:math>
      MathML content goes here
  </m:math>
  more XHTML content
</html>
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.